os-traits
A library containing standardized trait strings
What it is and what it does
os-traits is a reference library for OpenStack's Placement service, containing a curated set of trait constants that standardize how resource providers advertise their capabilities. Rather than each operator defining trait names ad hoc, this library ensures the OpenStack community uses consistent strings to describe CPU features, storage types, network capabilities, and device traits.
The package is purely a data and constants library—it has no complex logic or external dependencies beyond pbr. It's designed to be imported by OpenStack services and tools that need to query or configure resource provider traits, ensuring interoperability across deployments.
Use it for:
- Standardize trait names when configuring resource providers in OpenStack Placement.
- Reference trait constants in Python code that queries or updates Placement service capabilities.
- Ensure consistent trait naming across OpenStack operators and deployment tooling.
- Integrate trait definitions into custom OpenStack scheduling or resource management tools.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
os-traits provides a standardized catalog of trait strings used by OpenStack's Placement service to describe features of resource providers—hardware, virtualization, storage, network, and device capabilities.
Yes, if you are working with OpenStack Placement or building tools that interact with resource provider traits. The library is actively maintained, has no known vulnerabilities, and carries a permissive license. If you are not using OpenStack, this package has no value.
Install
os-traits on PyPI
pip
pip install os-traitsuv
uv add os-traitspoetry
poetry add os-traitsInstalling os-traits
Before you install
Low install friction with a single lightweight runtime dependency (pbr). Actively maintained as of 66 days ago, supporting current Python versions.
License in practice
Licensed under Apache (permissive), so you can use it freely in commercial and open-source projects without copyleft obligations.
Quickstart
pip install os-traits
from os_traits import hw
# Access standardized trait constants
print(hw.CPU_VMX)
Requires Python 3.9 or later.
Verify before relying
- Whether the trait catalog is actively updated to reflect new OpenStack hardware/feature definitions.
- Specific use cases beyond Placement service integration within OpenStack deployments.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pbr |
| Maintenance | actively maintained — 66 days since the last release |
| First released | |
| Downloads | 148,435/month — #11,035 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: os_traits-3.8.0-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
os-resource-classesProvides a standardized collection of resource…
permissive · top 15,000 on PyPI
osc-placementProvides a command-line interface to the…
permissive · top 15,000 on PyPI
os-service-typesProvides access to OpenStack service-type…
permissive · top 5,000 on PyPI
cotCOT edits and deploys Open Virtualization…
permissive · top 15,000 on PyPI
oslo.logoslo.log provides standardized logging…
permissive · top 5,000 on PyPI
os-kenos-ken is a component-based software defined…
permissive · top 15,000 on PyPI
os-vifos-vif provides a library for managing the…
permissive · top 15,000 on PyPI
traittypesProvides custom trait types for scientific…
permissive · top 5,000 on PyPI
os-client-configCollects and manages OpenStack cloud client…
permissive · top 15,000 on PyPI
traitletsTraitlets provides typed attributes for Python…
permissive · top 1,000 on PyPI