Skip to main content

dbz-lib

The official library for working with the Databento Binary Encoding (DBZ) format.

Usage

The primary point for entrypoint for dbz_lib is the Dbz object, which represents the contents of one DBZ file or byte stream. To read a DBZ file with MBO data and print each row:

use db_def::tick::TickMsg;
use dbz_lib::Dbz;

let dbz = Dbz::from_file("20201228.mbo.dbz")?;
for tick in dbz.try_into_iter::<TickMsg>() {
    println!("{tick:?}");
}

The documentation provides an overview of all methods and features.

Documentation

FIXME: when prepping to release to crates.io

Building

dbz is written in Rust, so you'll need to have Rust installed first.

To build, run the following commands:

git clone https://github.com/databento/dbz
cd dbz
cargo build --release

Python bindings

To also include the optional Python bindings when running any cargo command, pass the --all-features flag or --features=python. For example, to build all of dbz with Python bindings, run:

cargo build --all-features

To create a Python package from dbz-lib, you'll need to install Maturin. For a Python package to develop against, run:

maturin develop -F python

This will install a package named dbz_lib in your current Python environment.

Testing

Tests are run through cargo test and are located within each module.

License

Distributed under the Apache 2.0 License.

Release files for dbz-lib 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for dbz-lib 0.1.3
File
dbz_lib-0.1.3-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details
dbz_lib-0.1.3-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details
dbz_lib-0.1.3-cp310-cp310-macosx_10_7_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.7+ x86-64 Details
dbz_lib-0.1.3-cp39-cp39-manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.28+ x86-64 Details
dbz_lib-0.1.3-cp39-cp39-macosx_10_7_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.7+ x86-64 Details
dbz_lib-0.1.3-cp38-cp38-manylinux_2_28_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.28+ x86-64 Details
dbz_lib-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.7+ x86-64 Details
dbz_lib-0.1.3-cp37-cp37m-manylinux_2_28_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.28+ x86-64 Details
dbz_lib-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 Details

Total release size: 34.0 MB

Release files / dbz_lib-0.1.3-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl

Download URL dbz_lib-0.1.3-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Size 714.0 kB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e34d4798bfe68c2d907fc6afcfff4e85ce0c2001287ce9bde1f030501b256098
BLAKE2b-256 checksum
How to use checksums
1f2b422ae2f56fd04d72626fa51782fcde1c48df43deefbde95c978016fe779a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / dbz_lib-0.1.3-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL dbz_lib-0.1.3-cp310-cp310-manylinux_2_28_x86_64.whl
Size 7.1 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e8880ce1cc9fce4bfb84b0e42bf93121d903e4c685b3d26e9c810e1de4a99a6c
BLAKE2b-256 checksum
How to use checksums
41d647686f5396efb0eae51cb7ca03431a63342de1bfb6ef833b1a93a84a36b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / dbz_lib-0.1.3-cp310-cp310-macosx_10_7_x86_64.whl

Download URL dbz_lib-0.1.3-cp310-cp310-macosx_10_7_x86_64.whl
Size 1.2 MB
Tags CPython 3.10 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
331a785550f072418343faa4c9619725ca4c53dd35493e28bc06018be149f18f
BLAKE2b-256 checksum
How to use checksums
a1a17b01234e73b8707ee1ab42057e60263676136505e59087a5a192ef6e4006
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / dbz_lib-0.1.3-cp39-cp39-manylinux_2_28_x86_64.whl

Download URL dbz_lib-0.1.3-cp39-cp39-manylinux_2_28_x86_64.whl
Size 7.1 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
acbd79e51eb559b2562a03947991da879589bed8996d329d52ba6036533955da
BLAKE2b-256 checksum
How to use checksums
01c35b0107a10166377f6c053b9db021a10552880cc312fcbea99adb15229e11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / dbz_lib-0.1.3-cp39-cp39-macosx_10_7_x86_64.whl

Download URL dbz_lib-0.1.3-cp39-cp39-macosx_10_7_x86_64.whl
Size 1.2 MB
Tags CPython 3.9 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
62dbe05bf38695419d53e584f493c3de5aad5add8670d1e3f6eb687f70811d74
BLAKE2b-256 checksum
How to use checksums
2b85b5f09081bf46869b5123190ddace868cfa0068a6a5787b86c8dd388fae1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / dbz_lib-0.1.3-cp38-cp38-manylinux_2_28_x86_64.whl

Download URL dbz_lib-0.1.3-cp38-cp38-manylinux_2_28_x86_64.whl
Size 7.1 MB
Tags CPython 3.8 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2fd9da2647106d4ad3b373a0c7d4781795221d49b12700f32d4987abcabc10b0
BLAKE2b-256 checksum
How to use checksums
0bdbe47d4799712ba31d175d81f99322b6814f83e6505909a8090c5d0f0443ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release files / dbz_lib-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl

Download URL dbz_lib-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl
Size 1.2 MB
Tags CPython 3.8 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
af3ee77b2f09d1f92acc99f1c7a7798b0b5020f11d94e9601b7b8b7ca2820702
BLAKE2b-256 checksum
How to use checksums
f84c276cf28c208de0054f5f9048ab056a5b994b747bf1519a126a703025c65d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release files / dbz_lib-0.1.3-cp37-cp37m-manylinux_2_28_x86_64.whl

Download URL dbz_lib-0.1.3-cp37-cp37m-manylinux_2_28_x86_64.whl
Size 7.1 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
8bd4d2d2e993280cfa98421fd14cc099645cae168f28e14f36520f68ddb6d2df
BLAKE2b-256 checksum
How to use checksums
0fd74acfb5cf0259d18b644add39ecc39971ec0888dbdf8ae4f5e04eb2abc04d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.13

Release files / dbz_lib-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl

Download URL dbz_lib-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl
Size 1.2 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
e852cb70ce688fb77030402ce5c93738c4d91ffe4ce849db47011f44169dc86a
BLAKE2b-256 checksum
How to use checksums
c0de5583dfa5a1def5bae1b93e6af71d8edd24b8893f9b75b6fe6b56d69a1d81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.13

Release history Release notifications | RSS feed

This release

0.1.3 This release

9 release files

0.1.2

14 release files

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page