Skip to main content

Library for working with the Databento Binary Encoding (DBZ) format

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

dbz_lib-0.1.2-cp310-none-win_amd64.whl (335.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

dbz_lib-0.1.2-cp310-cp310-manylinux_2_28_x86_64.whl (645.6 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

dbz_lib-0.1.2-cp310-cp310-macosx_10_7_x86_64.whl (656.5 kB view details)

Uploaded CPython 3.10 macOS 10.7+ x86-64

dbz_lib-0.1.2-cp39-none-win_amd64.whl (335.2 kB view details)

Uploaded CPython 3.9 Windows x86-64

dbz_lib-0.1.2-cp39-cp39-manylinux_2_28_x86_64.whl (645.9 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

dbz_lib-0.1.2-cp39-cp39-manylinux_2_24_x86_64.whl (647.3 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.24+ x86-64

dbz_lib-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (537.3 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

dbz_lib-0.1.2-cp39-cp39-macosx_10_7_x86_64.whl (656.8 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

dbz_lib-0.1.2-cp38-none-win_amd64.whl (335.2 kB view details)

Uploaded CPython 3.8 Windows x86-64

dbz_lib-0.1.2-cp38-cp38-manylinux_2_28_x86_64.whl (646.3 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

dbz_lib-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl (657.1 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

dbz_lib-0.1.2-cp37-none-win_amd64.whl (335.1 kB view details)

Uploaded CPython 3.7 Windows x86-64

dbz_lib-0.1.2-cp37-cp37m-manylinux_2_28_x86_64.whl (646.4 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.28+ x86-64

dbz_lib-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl (657.1 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

File details

Details for the file dbz_lib-0.1.2-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for dbz_lib-0.1.2-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 b2c804deac5e8ec3c96b9cabb6e181362c1ab2dc1a365e0ec54f25a18c30ca23
MD5 3cca03634553a8e5fa1a621cb4ba8e06
BLAKE2b-256 e72002576581a034f3721176e47f76a2cb5fa52a119cdb4b6ac775cdaeee1fff

See more details on using hashes here.

File details

Details for the file dbz_lib-0.1.2-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dbz_lib-0.1.2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5527b313898de9e3c89267220d51ac925696ca38fcc345613509c3f783fd1143
MD5 8007aa348955c41a62c42fd24769c45e
BLAKE2b-256 2050950f133e20131c1ad5aa169bf9b9f7759b0b67276d5491f2f7b15c8689f3

See more details on using hashes here.

File details

Details for the file dbz_lib-0.1.2-cp310-cp310-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for dbz_lib-0.1.2-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 96293e2110890ae63ec0cc11fe1babd4e0ba451113cbb94503247c3f2f278240
MD5 2436f67d37c84dac7fe5cfc9f9f0c687
BLAKE2b-256 98487517f294732af687f224b4af88ac4bd8ad1e44ad9ee980cfe4de1cad334b

See more details on using hashes here.

File details

Details for the file dbz_lib-0.1.2-cp39-none-win_amd64.whl.

File metadata

  • Download URL: dbz_lib-0.1.2-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 335.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.13.2

File hashes

Hashes for dbz_lib-0.1.2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 3bd97b9811775439aef40447a207e6a3c6c8f928a1c69966a6e015ad6924562a
MD5 04aa4daa9792d17cee20a24d2b4e2368
BLAKE2b-256 6552686897e68caef1723db611cd64c27a2b75c3ebfd2532702f40d667bfe2cb

See more details on using hashes here.

File details

Details for the file dbz_lib-0.1.2-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dbz_lib-0.1.2-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a3991629786b734688dec57b626e5a2d1884d7aa09fce8c205b0270c925b61ee
MD5 8af01a6c82f9f2886abb53379a552cc2
BLAKE2b-256 a57e7bdcf1b56b50bbdf068ebd186223c7e464c8f7ab6ffccb87d43765c9f6df

See more details on using hashes here.

File details

Details for the file dbz_lib-0.1.2-cp39-cp39-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for dbz_lib-0.1.2-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 9583e17d8378019197e405c25a0c064ae6ce05a8fbecf6548098d5b4dc50e100
MD5 d45ade381659736f4bcf55dfe678f624
BLAKE2b-256 09cc45cb8b33db4497c308f7dde498eca9242ebb48b53bdff8eb66b37cc275d1

See more details on using hashes here.

File details

Details for the file dbz_lib-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dbz_lib-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a002f560ce6ec0f8b170150a333e1db58205d7fb46a5d355dce495a496bd1be9
MD5 1d14b15abfe6d0c2f74e417d8a88d655
BLAKE2b-256 0e3c79f53e2a98071a43eae9ffe075ff1b8b24183b36f9a3536f10edeb7f97d8

See more details on using hashes here.

File details

Details for the file dbz_lib-0.1.2-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for dbz_lib-0.1.2-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 4ed714fbe9b9f0282b893157659ad78628096d2a563f33bb789d10f7c907a333
MD5 0d270954cbb3747ae2b797fa685ca9f0
BLAKE2b-256 1313c261740cf91dc942b5e51cfeb1a5e47ddbff0e6b9679af4e6d9a7856bf97

See more details on using hashes here.

File details

Details for the file dbz_lib-0.1.2-cp38-none-win_amd64.whl.

File metadata

  • Download URL: dbz_lib-0.1.2-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 335.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.13.2

File hashes

Hashes for dbz_lib-0.1.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 a60689e47b95f5713ee7a01f79a869ef09c4bc182b4ac3027b358fad1ee6e347
MD5 0f7dfb2f7b976d739865396ed65866f3
BLAKE2b-256 e898a4d912562417c9c115015b9d31198a24964282da72086ce871590ee1709d

See more details on using hashes here.

File details

Details for the file dbz_lib-0.1.2-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dbz_lib-0.1.2-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e49fa7cf306154e4c57bf79ab88f424a895863447ae69806fa89f2d41f8acb97
MD5 c25e57f36ee1cf50ad153dcc8ad910fb
BLAKE2b-256 d9e6c66941c5a77b530bee2d0d5138b506bc7e41ce87fb7f02185670a4d585d6

See more details on using hashes here.

File details

Details for the file dbz_lib-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for dbz_lib-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 54ddd838dd9e1f1b6d731aefb721b98e50ecf3bf6b76131b94e1e903b40d1bb7
MD5 d2f3b696cb9bb4205dee18f9e18623f3
BLAKE2b-256 381cfc6ad0857fafff5516648b600c1961842a0b9431c90922724b2f77995a07

See more details on using hashes here.

File details

Details for the file dbz_lib-0.1.2-cp37-none-win_amd64.whl.

File metadata

  • Download URL: dbz_lib-0.1.2-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 335.1 kB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.13.2

File hashes

Hashes for dbz_lib-0.1.2-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 f0cf11c022a985acdc5c17881776f52c502e4d0148c1193cf5d60c41b9a1608f
MD5 c85c32233075f281b13e86b1be3e8f1d
BLAKE2b-256 4ec62424d259f8b387fb2fadfa5983a01ebf3b338cb5a83fd52e7d84755403d1

See more details on using hashes here.

File details

Details for the file dbz_lib-0.1.2-cp37-cp37m-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dbz_lib-0.1.2-cp37-cp37m-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e3326d93b9af211afb0f3f7c99c59613a7c4f1676f2b7fc8dd6bcaa8e4b89f69
MD5 d555960b048106bf1fbc8253030e5cfc
BLAKE2b-256 1c71bdba7f32ca8c8195f9dad0fb53d2f29c782a2c9dbead1da803d3fee3c7a0

See more details on using hashes here.

File details

Details for the file dbz_lib-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for dbz_lib-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 d5e82d2c7b495b25a3b6fba9a803ae877e8f861b7d15835c5f8287a56cc79d9d
MD5 d3a81aa18c352cea2a442553532b9605
BLAKE2b-256 02dd3bda02fe44242e362f6d3fdc172fb5c27ea1c62cbfba13239ae728af5ca1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page