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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbz_lib-0.1.3-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl.
File metadata
- Download URL: dbz_lib-0.1.3-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 714.0 kB
- Tags: Python 3, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e34d4798bfe68c2d907fc6afcfff4e85ce0c2001287ce9bde1f030501b256098
|
|
| MD5 |
1a9719227822c8a8e02ed91330e7de8a
|
|
| BLAKE2b-256 |
1f2b422ae2f56fd04d72626fa51782fcde1c48df43deefbde95c978016fe779a
|
File details
Details for the file dbz_lib-0.1.3-cp310-cp310-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: dbz_lib-0.1.3-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 7.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8880ce1cc9fce4bfb84b0e42bf93121d903e4c685b3d26e9c810e1de4a99a6c
|
|
| MD5 |
85e178d6f0caab221a94f8fe02060f29
|
|
| BLAKE2b-256 |
41d647686f5396efb0eae51cb7ca03431a63342de1bfb6ef833b1a93a84a36b6
|
File details
Details for the file dbz_lib-0.1.3-cp310-cp310-macosx_10_7_x86_64.whl.
File metadata
- Download URL: dbz_lib-0.1.3-cp310-cp310-macosx_10_7_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
331a785550f072418343faa4c9619725ca4c53dd35493e28bc06018be149f18f
|
|
| MD5 |
c70c9ac59b34f9d394da7ec62c4e4181
|
|
| BLAKE2b-256 |
a1a17b01234e73b8707ee1ab42057e60263676136505e59087a5a192ef6e4006
|
File details
Details for the file dbz_lib-0.1.3-cp39-cp39-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: dbz_lib-0.1.3-cp39-cp39-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 7.1 MB
- Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acbd79e51eb559b2562a03947991da879589bed8996d329d52ba6036533955da
|
|
| MD5 |
b6666d3555203a3f510ea9f3b2b8641d
|
|
| BLAKE2b-256 |
01c35b0107a10166377f6c053b9db021a10552880cc312fcbea99adb15229e11
|
File details
Details for the file dbz_lib-0.1.3-cp39-cp39-macosx_10_7_x86_64.whl.
File metadata
- Download URL: dbz_lib-0.1.3-cp39-cp39-macosx_10_7_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.9, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62dbe05bf38695419d53e584f493c3de5aad5add8670d1e3f6eb687f70811d74
|
|
| MD5 |
e2cf104895ca27408eb54237bacea3bb
|
|
| BLAKE2b-256 |
2b85b5f09081bf46869b5123190ddace868cfa0068a6a5787b86c8dd388fae1b
|
File details
Details for the file dbz_lib-0.1.3-cp38-cp38-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: dbz_lib-0.1.3-cp38-cp38-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 7.1 MB
- Tags: CPython 3.8, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fd9da2647106d4ad3b373a0c7d4781795221d49b12700f32d4987abcabc10b0
|
|
| MD5 |
ed55b3ee86fdfbbc778bdb2855bc2eff
|
|
| BLAKE2b-256 |
0bdbe47d4799712ba31d175d81f99322b6814f83e6505909a8090c5d0f0443ec
|
File details
Details for the file dbz_lib-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl.
File metadata
- Download URL: dbz_lib-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.8, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af3ee77b2f09d1f92acc99f1c7a7798b0b5020f11d94e9601b7b8b7ca2820702
|
|
| MD5 |
27dfbac919b377a30b8da93549d00eb5
|
|
| BLAKE2b-256 |
f84c276cf28c208de0054f5f9048ab056a5b994b747bf1519a126a703025c65d
|
File details
Details for the file dbz_lib-0.1.3-cp37-cp37m-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: dbz_lib-0.1.3-cp37-cp37m-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 7.1 MB
- Tags: CPython 3.7m, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bd4d2d2e993280cfa98421fd14cc099645cae168f28e14f36520f68ddb6d2df
|
|
| MD5 |
8f95beb6a6f9d0255bb0eb883b0c7781
|
|
| BLAKE2b-256 |
0fd74acfb5cf0259d18b644add39ecc39971ec0888dbdf8ae4f5e04eb2abc04d
|
File details
Details for the file dbz_lib-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl.
File metadata
- Download URL: dbz_lib-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.7m, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e852cb70ce688fb77030402ce5c93738c4d91ffe4ce849db47011f44169dc86a
|
|
| MD5 |
83e3c8401f5b60801db278ba99077dbd
|
|
| BLAKE2b-256 |
c0de5583dfa5a1def5bae1b93e6af71d8edd24b8893f9b75b6fe6b56d69a1d81
|