Skip to main content

cstructs

Think struct, but on steroids.

PyPI - Version PyPI - Python Version PyPI - License status


Note: This version supercedes the original cstruct package. This is my first attempt at a test driven development cycle, so I apologize in advance if the things that I do don't make sense.

Table of Contents

Installation

python -m pip install --user -U cstructs

Features

  • Serializing
  • Deserializing
  • Inheritance between datastructs
  • Sequences
  • Allow other datastructs to be members
  • Callbacks for reading/writing
  • Individual class metadata
  • Variable length data by depending on the value of another member
  • String decoding using specified encoding format
  • Lazy sequence loading
  • Fallback(default) value for missing values
  • Handling of various types of data alignment
  • Is type checker friendly

License

cstructs is distributed under the terms of the GNU GPL v3 license.

Metadata

Release files for cstructs 0.2.5

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

Source distribution (sdist)

Source distribution for cstructs 0.2.5
File Size Uploaded Provenance Actions
cstructs-0.2.5.tar.gz 34.7 kB Without provenance Details for cstructs-0.2.5.tar.gz

Release files / cstructs-0.2.5.tar.gz

Download URL cstructs-0.2.5.tar.gz
Size 34.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b55ec3f1db5f7b33d7f51364988a69958f95ec848d8bf2c0e585e130e13edfdc
BLAKE2b-256 checksum
How to use checksums
193edbd3cf8df60365523b8f6f244d95fdfe0e46584557fce4e533b8df771eb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.25.2

Security for cstructs 0.2.5

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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