os-traits is primarily composed of a set of constants that may be referenced by simply importing the os_traits module and referencing one of the module’s traits constants:

$ python3
Python 3.6.8 (default, Oct  7 2019, 12:59:55)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os_traits as ot
>>> print(ot.HW_CPU_X86_SSE42)

You can get a list of the os_traits symbols by simply doing a dir(os_traits).

Want to see the trait strings for a subset of traits? There’s a method for that too:

>>> import pprint
>>> pprint.pprint(ot.get_traits(prefix='HW_CPU_X86_'))