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, installed automatically by package managers.

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.0.tar.gz (45.7 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.0-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dnbflib-1.1.0.tar.gz
  • Upload date:
  • Size: 45.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for dnbflib-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b59ffbcc04b49b10b572fa3c358979ef3e74c67446bca004d4540320e286cc4d
MD5 652bd516c88e7a7ee6c64f2406c66ab5
BLAKE2b-256 c1ec71d870b941e62f97a92f956df8f1c7898b06947933c0235a4a97e8f69008

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dnbflib-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for dnbflib-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57d7df059aeffe50745040d565c16120e38a98fc4fbceea86b9e50d8afa55ca9
MD5 ebb42a7b9632defc8e5447e256ab5996
BLAKE2b-256 75766244289e6ca6e51f77d5fdb00fe955fb50e6c52f0bde3230bf6fcefc78b9

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