--- id: os-traits version: "3.8.0" license: unclear license_treatment: permissive maintenance: active --- # os-traits — A library containing standardized trait strings License: permissive · Maintenance: active · Downloads: 148.4K/mo ## 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 above — 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 pip install os-traits uv add os-traits 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_current - Install friction: low - Maintenance: active - Downloads: 148.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags openstack trait constants, placement service traits, resource provider capabilities, openstack standardized traits, hardware trait catalog, openstack feature strings, openstack, placement-service [View on SkillFed](https://skillfed.io/packages/os-traits) · [View on PyPI](https://pypi.org/project/os-traits/)