oslo.serialization
Oslo Serialization library
What it is and what it does
oslo.serialization is a library from the OpenStack project that handles conversion of Python objects into formats suitable for transmission and storage. It abstracts away the details of working with Base64, JSON, and MessagePack, providing a consistent interface across these serialization backends.
The library is designed for cloud infrastructure and distributed systems where objects need to be reliably encoded, transmitted over networks, and decoded on the other end. It sits between application code and the underlying format libraries (msgpack and oslo.utils), handling the mechanics of serialization so callers don't need to manage format-specific details directly.
Use it for:
- Serialize application state to JSON for REST API responses in OpenStack services
- Encode Python objects to MessagePack for efficient binary transmission between services
- Convert objects to Base64 for embedding in configuration files or logs
- Provide a unified serialization layer across multiple OpenStack components
- Handle object-to-wire conversion in distributed system communication
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
oslo.serialization provides serialization and deserialization support for objects in formats including Base64, JSON, and MessagePack, designed for transmittable and storable representations.
Yes, if you are working within the OpenStack ecosystem or need a consistent serialization abstraction across multiple formats. The library is actively maintained, has no known vulnerabilities, and low install friction. If you only need standard JSON serialization, Python's built-in json module may be sufficient; this package adds value primarily when you need format flexibility or are integrating with OpenStack infrastructure.
Install
oslo-serialization on PyPI
pip
pip install oslo-serializationuv
uv add oslo-serializationpoetry
poetry add oslo-serializationInstalling oslo.serialization
Before you install
Low install friction with a pure-wheel distribution. Active maintenance with a release 35 days ago. Depends on msgpack and oslo.utils, both lightweight runtime dependencies.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most deployment contexts.
Quickstart
pip install oslo.serialization
from oslo_serialization import jsonutils
data = {'key': 'value'}
serialized = jsonutils.dumps(data)
deserialized = jsonutils.loads(serialized)
Requires Python 3.11 or later.
Verify before relying
- Whether the package supports streaming or only in-memory serialization
- Performance characteristics compared to standard library json module
- Whether custom serializers for application-specific types are supported
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — msgpack, oslo.utils |
| Maintenance | actively maintained — 35 days since the last release |
| First released | |
| Downloads | 1,600,645/month — #3,727 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: oslo_serialization-5.11.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.reportsoslo.reports generates structured debug reports…
permissive · top 15,000 on PyPI
oslo.versionedobjectsoslo.versionedobjects provides a versioned…
permissive · top 15,000 on PyPI
oslo.utilsoslo.utils provides common utility functions…
permissive · top 5,000 on PyPI
oslo.vmwareoslo.vmware provides a library for common…
permissive · top 15,000 on PyPI
oslo.messagingOslo Messaging provides a unified API for RPC…
permissive · top 15,000 on PyPI
borsh-constructImplements the Borsh binary serialization…
permissive · top 15,000 on PyPI
oslo.cacheoslo.cache wraps dogpile.cache to provide a…
permissive · top 15,000 on PyPI
oslo.logoslo.log provides standardized logging…
permissive · top 5,000 on PyPI
cbor2Encodes and decodes CBOR (Concise Binary Object…
permissive · top 1,000 on PyPI
cborSerializes and deserializes data in CBOR…
permissive · top 5,000 on PyPI