Skip to main content

Easily parse binary file in python3.8

Project description

auto_struct

Python 3.8 module using annotations and dataclasses for easily writing parsers for binary data

  • Parse packed binary data using declarative forms
  • Easily validate parsed data
  • Easily nest structs
  • No Dependencies :)

Usage example

See this

Contribution

Contributors are welcome!

TODO:

  • Method documentation (WIP)
  • Documentation (WIP)
  • More examples
  • Tests
  • Intermediate types/Binding two types - (E.g. in memory type vs how should it be used)
    • API Should probably be some def twin(self)?
  • Dynamic sized structs (e.g. struct a{ int len; char data[] };)

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

auto_struct-0.700.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file auto_struct-0.700.tar.gz.

File metadata

  • Download URL: auto_struct-0.700.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6

File hashes

Hashes for auto_struct-0.700.tar.gz
Algorithm Hash digest
SHA256 8f6d6da24e37d3bb0c7ba907274339993bd62ab47197e146b1cdb2ebb9238440
MD5 553947749154f206b75c7b3754ede72d
BLAKE2b-256 8319996875f5a121f2171abd353199aa9ea71df21e3f839930d9e6c51719ecf0

See more details on using hashes here.

Supported by

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