databento-dbn
Python bindings for encoding and decoding Databento Binary Encoding (DBN)
What it is and what it does
databento-dbn is a low-level Python library that wraps Databento's Rust implementation of DBN, a binary encoding format for financial market data. It is designed primarily as an internal dependency of the Databento Python client library and is intended for advanced users who need direct access to DBN encoding and decoding operations.
The package provides bindings to serialize and deserialize market data in DBN format, which is optimized for compact storage and fast transmission of time-series financial information. It has no runtime dependencies and is distributed as precompiled wheels for Python 3.10, 3.11, and 3.12 across macOS, Linux, and Windows, making installation straightforward on standard platforms.
Use it for:
- Decode DBN-encoded market data received from Databento's data feeds or stored files
- Encode market data into DBN format for efficient storage or transmission
- Integrate with the Databento Python client library for advanced data handling workflows
- Build custom market data processing pipelines that require direct access to DBN serialization
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
databento-dbn provides Python bindings for encoding and decoding Databento Binary Encoding (DBN), a binary format for financial market data.
Yes, if you are using the Databento Python client library or need to work directly with DBN-encoded financial data. The package is actively maintained, has no known vulnerabilities, and offers good platform coverage. Install it only if you have a specific need for DBN encoding/decoding; it is not a general-purpose library and is explicitly marked as for advanced users.
Install
databento-dbn on PyPI
pip
pip install databento-dbnuv
uv add databento-dbnpoetry
poetry add databento-dbnInstalling databento-dbn
Before you install
Medium install friction due to compiled Rust bindings, but well-supported across Python 3.10+ on major platforms (macOS, Linux, Windows). Active maintenance with a recent release (3 days old) and no known vulnerabilities.
License in practice
Apache-2.0 permissive license allows use in commercial and open-source projects with minimal restrictions; attribution required.
Quickstart
pip install databento-dbn
import databento_dbn
# Decode DBN-encoded market data
data = databento_dbn.decode(encoded_bytes)
Requires Python 3.10 or later; precompiled wheels available for common platforms, but building from source requires Rust and Maturin.
Verify before relying
- Specific API surface and method signatures beyond encoding/decoding capability
- Performance characteristics for large-scale market data processing
- Integration patterns beyond use as a Databento client dependency
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,804,254/month — #3,540 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: databento_dbn-0.66.0-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl; databento_dbn-0.66.0-cp310-cp310-macosx_10_12_x86_64.whl; databento_dbn-0.66.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; databento_dbn-0.66.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; databento_dbn-0.66.0-cp310-cp310-musllinux_1_2_aarch64.whl; databento_dbn-0.66.0-cp310-cp310-musllinux_1_2_x86_64.whl; databento_dbn-0.66.0-cp310-cp310-win_amd64.whl; databento_dbn-0.66.0-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl; databento_dbn-0.66.0-cp311-cp311-macosx_10_12_x86_64.whl; databento_dbn-0.66.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; databento_dbn-0.66.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; databento_dbn-0.66.0-cp311-cp311-musllinux_1_2_aarch64.whl; databento_dbn-0.66.0-cp311-cp311-musllinux_1_2_x86_64.whl; databento_dbn-0.66.0-cp311-cp311-win_amd64.whl; databento_dbn-0.66.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl; databento_dbn-0.66.0-cp312-cp312-macosx_10_12_x86_64.whl; databento_dbn-0.66.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; databento_dbn-0.66.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; databento_dbn-0.66.0-cp312-cp312-musllinux_1_2_aarch64.whl; databento_dbn-0.66.0-cp312-cp312-musllinux_1_2_x86_64.whl
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
databentoOfficial Python client for accessing live and…
permissive · top 5,000 on PyPI
biscuit-pythonPython bindings for the biscuit authentication…
unclear · top 15,000 on PyPI
xbbgxbbg is a Bloomberg client for Python that…
permissive · top 15,000 on PyPI
asn1Encodes and decodes ASN.1 data structures using…
permissive · top 5,000 on PyPI
baml-bridgeProvides Python bindings for the BAML runtime,…
permissive · top 15,000 on PyPI
python-bidiConverts bidirectional text (mixed…
copyleft · top 5,000 on PyPI
based58Encodes and decodes data using Base58 and…
unclear · top 15,000 on PyPI
cbor2Encodes and decodes CBOR (Concise Binary Object…
permissive · top 1,000 on PyPI
base2048Encodes and decodes binary data using Base2048,…
permissive · top 15,000 on PyPI
baostockBaoStock retrieves historical China stock…
permissive · top 15,000 on PyPI