Skip to main content

A library containing standardized trait strings

Project description

A library containing standardized trait strings.

Traits are strings that represent a feature of some resource provider. This library contains the catalog of constants that have been standardized in the OpenStack community to refer to a particular hardware, virtualization, storage, network, or device trait.

Usage

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:

$ python
Python 2.7.11+ (default, Apr 17 2016, 14:00:29)
[GCC 5.3.1 20160413] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os_traits as ot
>>> print ot.HW_CPU_X86_SSE42
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:

>>> pprint.pprint(ot.get_traits(ot.NAMESPACES['X86']))
['HW_CPU_X86_AES-NI',
 'HW_CPU_X86_AVX512ER',
 'HW_CPU_X86_AVX512CD',
 'HW_CPU_X86_TBM',
 'HW_CPU_X86_TSX',
 'HW_CPU_X86_FMA3',
 'HW_CPU_X86_SVM',
 'HW_CPU_X86_FMA4',
 'HW_CPU_X86_MPX',
 'HW_CPU_X86_SSE2',
 'HW_CPU_X86_SSE3',
 'HW_CPU_X86_MMX',
 'HW_CPU_X86_SSSE3',
 'HW_CPU_X86_SSE4A',
 'HW_CPU_X86_AVX2',
 'HW_CPU_X86_SGX',
 'HW_CPU_X86_AVX',
 'HW_CPU_X86_AVX512BW',
 'HW_CPU_X86_AVX512DQ',
 'HW_CPU_X86_SSE',
 'HW_CPU_X86_SHA',
 'HW_CPU_X86_AVX512F',
 'HW_CPU_X86_F16C',
 'HW_CPU_X86_SSE41',
 'HW_CPU_X86_SSE42',
 'HW_CPU_X86_VMX',
 'HW_CPU_X86_ASF',
 'HW_CPU_X86_BMI2',
 'HW_CPU_X86_CLMUL',
 'HW_CPU_X86_AVX512VL',
 'HW_CPU_X86_AVX512PF',
 'HW_CPU_X86_XOP',
 'HW_CPU_X86_BMI',
 'HW_CPU_X86_ABM',
 'HW_CPU_X86_3DNOW']

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

os-traits-0.3.1.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

os_traits-0.3.1-py2-none-any.whl (14.1 kB view details)

Uploaded Python 2

File details

Details for the file os-traits-0.3.1.tar.gz.

File metadata

  • Download URL: os-traits-0.3.1.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for os-traits-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d328a834e714b3b93aea944eb54a8e83eaa65fe756c7812fac554e37ac1d8e79
MD5 6943db4f5c28c0a066bf66b31b5adb1b
BLAKE2b-256 1d2da8d1f5d23c21bbb47daaa512c93c3bfc50c4f9b06c1ccf553aaebf7d1405

See more details on using hashes here.

File details

Details for the file os_traits-0.3.1-py2-none-any.whl.

File metadata

File hashes

Hashes for os_traits-0.3.1-py2-none-any.whl
Algorithm Hash digest
SHA256 1aec26f540c44aaff421f62c11e20627e680152c0274978a94601e287b0e4895
MD5 e2e2b0cf041b3c317e49ac3159a44c64
BLAKE2b-256 1bfba2842c9382db68c9a193d842c33112f80a4be204513a7a9c03da7b5f652d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page