Skip to main content

c-like struct implementation for human

Project description

pystructs

Build Status codecov

pystructs is useful c-like struct package for human

How to install

$ pip install pystructs

Example codes

from pystructs import fields

class MyStruct(fields.Struct):
    byte = fields.BytesField(size=2)

MyStruct(b'\x00\x01').byte  # b'\x00\x01'

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

pystructs-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file pystructs-0.1.1.tar.gz.

File metadata

  • Download URL: pystructs-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.0a4+

File hashes

Hashes for pystructs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f906d9bf99b3c22c72a520ce6007099b7fc152a46afd502ddf20ec6c031a4ae7
MD5 57e274190eed82ec6ed391c182215250
BLAKE2b-256 687bc53ea26887f8373da71cde763594f11e5eec363c24e9b7741babf80f9ca6

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