skillfed

oslo.utils

Oslo Utility library

oslo-utils v10.1.1 2.1M downloads/30d#3,307 on PyPI
Permissive license Apache-2.0 Active released

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

uv

uv add oslo-utils

poetry

poetry add oslo-utils

Installing 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

Environment :: OpenStackIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Typing :: Typed

Tags

string encoding utilitiestime handling functionsexception handling helpersopenstack utility librarycommon utility functionspython encoding toolstime parsing and formatting
openstackutility-library

More Software Development packages