Skip to main content

dnbflib

dnbflib reads, indexes, edits, exports, and rebuilds .NET BinaryFormatter / NRBF binary streams in Python.

Warning

BinaryFormatter is unsafe for untrusted data. Use this library for inspection, migration, recovery, and editing of files you already trust. Do not accept arbitrary BinaryFormatter payloads from users or the network.

Features

  • Memory-conscious object graph traversal with DNBFDocument.
  • Editing of supported primitive, string, reference, object, and array values.
  • Creation of new class instances from existing object templates.
  • Creation and mutation of typed one-dimensional arrays.
  • Lossless YAML export and rebuild with raw binary sidecars.
  • SQLite-backed record storage through DNBFRecordStore.
  • Stream rebuilding through DNBFWriter.

Requirements

  • Python 3.11 or newer.
  • pydatastreams

Installation

From PyPI, once published:

pip install dnbflib

From a local checkout:

python -m pip install -e .

Documentation

Full usage documentation and tutorials are available in docs/index.html.

License

dnbflib is distributed under the terms of the MIT license.

Metadata

Release files for dnbflib 1.1.1

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

Source distribution (sdist)

Source distribution for dnbflib 1.1.1
File Size Uploaded
dnbflib-1.1.1.tar.gz 46.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dnbflib 1.1.1
File Interpreter ABI Platform
dnbflib-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 77.5 kB

Release files / dnbflib-1.1.1.tar.gz

Download URL dnbflib-1.1.1.tar.gz
Size 46.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f76a5107edfc16d6de1d3d3780b04a5caa56ff912cb2dc99e2161cb45f2c494c
BLAKE2b-256 checksum
How to use checksums
c7f053aef35abee080b28321220a25a3d2e91f7da170f40d04aaddb8638de8ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.12.13 HTTPX/0.28.1

Release files / dnbflib-1.1.1-py3-none-any.whl

Download URL dnbflib-1.1.1-py3-none-any.whl
Size 31.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6ef53dee9188e49a3162caacb6640d24cf2481a19f8a681b5b9e5e9b1cbe66e
BLAKE2b-256 checksum
How to use checksums
6b7fe9bf5199c38b2b1cec1e78e7fd637f1430fa142653540325a9aa7138dc1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.12.13 HTTPX/0.28.1

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

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