Python bindings for encoding and decoding Databento Binary Encoding (DBN)
Actively maintained. Last release 6 days ago, commits in 24 of the last 26 weeks. A safe choice.
pip install databento-dbndatabento-dbn
Python bindings for the dbn Rust library, used by the Databento Python client library.
For more information about the encoding, read our introduction to DBN.
Using this library is for advanced users and is not fully documented or supported.
Installation
To install the latest stable version from PyPI:
pip install -U databento-dbn
Usage and documentation
See the documentation for the Python client library.
Building
databento-dbn is written in Rust, so you'll need to have Rust installed
as well as Maturin.
To build, run the following commands:
git clone https://github.com/databento/dbn
cd dbn
maturin build
To build the Python package and install it for the active Python interpreter in your PATH, run:
maturin develop
This will install a package named databento-dbn in your current Python environment.
Alternatively, uv can manage the development environment:
cd python
uv sync # create .venv with maturin and build databento-dbn into it
uv run maturin develop # rebuild after editing the Rust sources
To build for a specific interpreter, such as the free-threaded build of Python 3.15, pass it explicitly:
maturin build --interpreter python3.15t