Skip to main content

Read, edit, export, and rebuild .NET BinaryFormatter / NRBF streams.

Project description

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.

Project details


Download files

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

Source Distribution

dnbflib-1.1.1.tar.gz (46.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dnbflib-1.1.1-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

Details for the file dnbflib-1.1.1.tar.gz.

File metadata

  • Download URL: dnbflib-1.1.1.tar.gz
  • Upload date:
  • Size: 46.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.12.13 HTTPX/0.28.1

File hashes

Hashes for dnbflib-1.1.1.tar.gz
Algorithm Hash digest
SHA256 f76a5107edfc16d6de1d3d3780b04a5caa56ff912cb2dc99e2161cb45f2c494c
MD5 fb094617c95aefc7410d507852ab3cd0
BLAKE2b-256 c7f053aef35abee080b28321220a25a3d2e91f7da170f40d04aaddb8638de8ff

See more details on using hashes here.

File details

Details for the file dnbflib-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: dnbflib-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 31.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.12.13 HTTPX/0.28.1

File hashes

Hashes for dnbflib-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6ef53dee9188e49a3162caacb6640d24cf2481a19f8a681b5b9e5e9b1cbe66e
MD5 bccad6d329204d7edc2e529cee70496d
BLAKE2b-256 6b7fe9bf5199c38b2b1cec1e78e7fd637f1430fa142653540325a9aa7138dc1a

See more details on using hashes here.

Supported by

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