Skip to main content

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

Known limitations

  • When two consecutive bitfields do not have the same storage (like uint32_t followed by uint16_t), offsets are wrong.

Roadmap

  • to_asciidoc
    • raw_bytes option: display values as hexstr
  • support for enums
  • support for user specified alignement
  • support for unions ?
  • better support for bitfields:
    • fix the known limitation or at least detect it and issue an error
    • optional arg to auto create padding bitfield -> may need an entirely new approach to bitfields to have a container object
  • 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...
  • replace sympy with z3 ?

Release files for xctype 0.0.29

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

Source distribution (sdist)

Source distribution for xctype 0.0.29
File Size Uploaded
xctype-0.0.29.tar.gz 32.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xctype 0.0.29
File Interpreter ABI Platform
xctype-0.0.29-py3-none-any.whl Python 3 none any Details

Total release size: 50.0 kB

Release files / xctype-0.0.29.tar.gz

Download URL xctype-0.0.29.tar.gz
Size 32.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cfa8ac31298babab664ba1d8b8bae13ec771dac5b05f5a9ba6e026ac7198c923
BLAKE2b-256 checksum
How to use checksums
dc1b42f0eeadceaa9aa206da2f69c0d136944d538d5bf0df26f6a07cacb8faaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release files / xctype-0.0.29-py3-none-any.whl

Download URL xctype-0.0.29-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5101a4d4c99b23a6788e688de64cd53c6503797f52a1f13c09607cdfc7750c4a
BLAKE2b-256 checksum
How to use checksums
f7b51b208503008b21f74d294a174882d636a23097ba8de6e571a6f4fe7e5248
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.30

2 release files

This release

0.0.29 This release

2 release files

0.0.24

2 release files

0.0.23

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

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