oslo.config
Oslo Configuration API
What it is and what it does
Oslo.config is a configuration library originally developed for OpenStack but usable by any Python application. It provides a unified API for defining, parsing, and managing configuration from both command-line arguments and .ini-style configuration files. The library handles type validation, default values, and option registration through a declarative interface.
The package depends on six runtime libraries: netaddr for network address handling, stevedore for plugin management, oslo.i18n for internationalization, rfc3986 for URI parsing, PyYAML for YAML support, and requests for HTTP operations. It is actively maintained, supports Python 3.11 through 3.14, and carries no known security vulnerabilities.
Use it for:
- Define and parse configuration options for OpenStack services or other distributed applications.
- Load application settings from both command-line flags and .ini configuration files in a single unified interface.
- Manage plugin-based configuration through stevedore integration for extensible applications.
- Validate and type-check configuration values at parse time to catch errors early.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses command-line arguments and .ini-style configuration files for OpenStack applications and other Python projects.
Yes. Oslo.config is a mature, actively maintained library with low install friction, no security vulnerabilities, and permissive licensing. It is well-suited for applications that need flexible configuration from multiple sources. Install it if you are building OpenStack services or any Python application requiring robust command-line and file-based configuration management.
Install
oslo-config on PyPI
pip
pip install oslo-configuv
uv add oslo-configpoetry
poetry add oslo-configInstalling oslo.config
Before you install
Low friction installation with a pure-Python wheel. Active maintenance with a release within the last week. Requires Python 3.11 or later.
License in practice
Apache License 2.0 (permissive) — free to use, modify, and distribute in commercial and open-source projects with minimal restrictions.
Quickstart
pip install oslo.config
from oslo_config import cfg
CONF = cfg.CONF
CONF.register_opt(cfg.StrOpt('name', default='example'))
CONF(['--name', 'myapp'])
Requires Python 3.11 or later.
Verify before relying
- Whether the library's plugin system (stevedore) integration is documented with examples.
- Performance characteristics when parsing large configuration files or many command-line arguments.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — netaddr, stevedore, oslo.i18n, rfc3986, PyYAML, requests |
| Maintenance | actively maintained — 7 days since the last release |
| First released | |
| Downloads | 1,754,255/month — #3,588 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: oslo_config-10.7.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
oslo.logoslo.log provides standardized logging…
permissive · top 5,000 on PyPI
oslo.vmwareoslo.vmware provides a library for common…
permissive · top 15,000 on PyPI
INIToolsINITools parses and manipulates INI-style…
permissive · top 15,000 on PyPI
oslo.reportsoslo.reports generates structured debug reports…
permissive · top 15,000 on PyPI
oslo.utilsoslo.utils provides common utility functions…
permissive · top 5,000 on PyPI
pbrPBR injects sensible defaults into setuptools…
permissive · top 1,000 on PyPI
oslotestoslotest provides a testing framework with…
permissive · top 15,000 on PyPI
oslo.dboslo.db provides database connectivity and ORM…
permissive · top 15,000 on PyPI
oslo.rootwraposlo.rootwrap provides fine-grained filtering…
permissive · top 15,000 on PyPI
oslo.contextoslo.context provides utilities to store and…
permissive · top 5,000 on PyPI