Skip to main content

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[] };)

Metadata

Release files for auto-struct 0.700

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

Source distribution (sdist)

Source distribution for auto-struct 0.700
File Size Uploaded Provenance
auto_struct-0.700.tar.gz 8.6 kB Without provenance Details

Release files / auto_struct-0.700.tar.gz

Download URL auto_struct-0.700.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8f6d6da24e37d3bb0c7ba907274339993bd62ab47197e146b1cdb2ebb9238440
BLAKE2b-256 checksum
How to use checksums
8319996875f5a121f2171abd353199aa9ea71df21e3f839930d9e6c51719ecf0
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for auto-struct 0.700

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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