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.
To install the latest stable version from PyPI:
pip install -U databento-dbn
See the documentation for the Python client library.
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 buildTo 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
Distributed under the Apache 2.0 License.