skillfed

os-traits

A library containing standardized trait strings

os-traits v3.8.0 148.4K downloads/30d#11,035 on PyPI
Permissive license Active released

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-traits

uv

uv add os-traits

poetry

poetry add os-traits

Installing 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

Environment :: OpenStackIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPython

Tags

openstack trait constantsplacement service traitsresource provider capabilitiesopenstack standardized traitshardware trait catalogopenstack feature strings
openstackplacement-service

More Software Development packages