oslo.utils
Oslo Utility library
What it is and what it does
oslo.utils is a utility library from the OpenStack project that bundles common functions for encoding, exception handling, string manipulation, and time handling. It is designed to reduce boilerplate in OpenStack services and other Python applications that need these operations. The library depends on iso8601, oslo.i18n, netaddr, pyparsing, packaging, PyYAML, psutil, and pbr, making it suitable for applications already in the OpenStack ecosystem or those comfortable with these dependencies.
The package is actively maintained, supports Python 3.10 through 3.13, and carries an Apache-2.0 license. It installs with low friction as a pure wheel. With over 2 million monthly downloads and a position in the top 5000 PyPI packages, it is widely used in production systems. No known security vulnerabilities are recorded.
Use it for:
- Standardize string encoding and decoding across OpenStack services or microservices.
- Parse and format timestamps consistently using built-in time handling utilities.
- Handle common exceptions with utility functions designed for distributed systems.
- Manipulate and validate network addresses using netaddr integration.
- Reduce code duplication in applications that need cross-cutting utility functions.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
oslo.utils provides common utility functions for encoding, exception handling, string manipulation, and time handling, designed for use in OpenStack and other Python applications.
Yes, if you are building or maintaining OpenStack services or applications that already depend on oslo libraries. The low install friction, active maintenance, permissive license, and broad Python version support make it a safe choice. If you are not in the OpenStack ecosystem and need only one or two of its utility categories, consider whether a smaller, single-purpose library would reduce your dependency footprint.
Install
oslo-utils on PyPI
pip
pip install oslo-utilsuv
uv add oslo-utilspoetry
poetry add oslo-utilsInstalling oslo.utils
Before you install
Low install friction with a pure-wheel distribution. Active maintenance status and support for current Python versions (3.10–3.13) indicate ongoing care.
License in practice
Apache-2.0 permissive license allows broad use, modification, and distribution with minimal restrictions.
Quickstart
pip install oslo.utils
from oslo_utils import encoding
encoded = encoding.safe_encode('text')
Requires Python 3.10 or later.
Verify before relying
- Specific encoding formats and exception types handled beyond the general categories mentioned.
- Whether time handling includes timezone-aware operations or only naive datetime support.
- Performance characteristics when used at scale with large datasets.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — iso8601, oslo.i18n, netaddr, pyparsing, packaging, PyYAML, psutil, pbr |
| Maintenance | actively maintained — 66 days since the last release |
| First released | |
| Downloads | 2,081,758/month — #3,307 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: oslo_utils-10.1.1-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.middlewareoslo.middleware provides WSGI middleware…
permissive · top 15,000 on PyPI
oslo.vmwareoslo.vmware provides a library for common…
permissive · top 15,000 on PyPI
oslo.serializationoslo.serialization provides serialization and…
permissive · top 5,000 on PyPI
oslotestoslotest provides a testing framework with…
permissive · top 15,000 on PyPI
oslo.logoslo.log provides standardized logging…
permissive · top 5,000 on PyPI
oslo.contextoslo.context provides utilities to store and…
permissive · top 5,000 on PyPI
oslo.concurrencyoslo.concurrency provides locking mechanisms…
permissive · top 15,000 on PyPI
oslo.configParses command-line arguments and .ini-style…
permissive · top 5,000 on PyPI
commoncodeCommonCode provides utility functions for…
unclear · top 15,000 on PyPI
oslo.cacheoslo.cache wraps dogpile.cache to provide a…
permissive · top 15,000 on PyPI