Skip to main content

Python package for explicit C types

Project description

xctype

Explicit C types for Python

This is a proof of concept / work in progress for now, see roadmap.

Installation

python3 -m pip install xctype-***.whl

Roadmap

  • get_types: return types used in the struct (with deep argument similar to to_str)
  • to_asciidoc
    • raw_bytes option: display values as hexstr
  • support for enums
  • support for user specified alignement
  • support for unions ?
  • to_c: generate typedef
  • check_offsets_against_c: generate a program to check struct members offsets
  • doc: think about how to attach a doc to each member, preferably in a python/sphinx friendly way to leverage IDEs
  • replace make_struct by a decorator ?
  • think about way for user to add code to the struct to manipulate it / validate it (struct with CRCs for example)
  • replace sympy by plain python eval ? allows to size stuff based on other stuff size for example. maybe no point making this more flexible than C...

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

xctype-0.0.5.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xctype-0.0.5-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file xctype-0.0.5.tar.gz.

File metadata

  • Download URL: xctype-0.0.5.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for xctype-0.0.5.tar.gz
Algorithm Hash digest
SHA256 4ec1299398802f09499dcb1ffca9a3d6b91f6b19ca685f127a47755cd0fb289c
MD5 23af340720ea2d866ce67459e2952850
BLAKE2b-256 b31ede6d373f2858f98542405a70b1e6279083f192cd692d1dac2df789ee40d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for xctype-0.0.5.tar.gz:

Publisher: python-publish.yml on sebastien-riou/xctype

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xctype-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: xctype-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for xctype-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 771bfdb2dbd738415ff462040291c45f742b09f7bbe4186aa7dc026fc247d1a2
MD5 43f6bd6c952bf23d4cdfc5a8fcc1eef7
BLAKE2b-256 5d2bc871c9a2f8d976cfa922a9c5e9bc76c1e8cf0306fa2fa8cc0769a5050c88

See more details on using hashes here.

Provenance

The following attestation bundles were made for xctype-0.0.5-py3-none-any.whl:

Publisher: python-publish.yml on sebastien-riou/xctype

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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