dbz-lib

build license Current Crates.io Version

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: ```rust use databentodefs::tick::TickMsg; use dbzlib::Dbz; use streaming_iterator::StreamingIterator;

let dbz = Dbz::fromfile("20201228.dbz")?.tryinto_iter::()?; while let Some(tick) = dbz.next() { println!("{tick:?}"); } ```

Documentation

See the docs for more detailed usage.

Building

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

To build, run the following commands: sh git clone https://github.com/databento/dbz cd dbz cargo build --release

Testing

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

License

Distributed under the Apache 2.0 License.