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.30

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.30
File Size Uploaded
xctype-0.0.30.tar.gz 33.7 kB Details

Built distribution (wheel)

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

Total release size: 52.2 kB

Release files / xctype-0.0.30.tar.gz

Download URL xctype-0.0.30.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8e2986ab73f93344c73fb759ca9066db11641dca0c7aaa04bf5ac2adbfb2b113
BLAKE2b-256 checksum
How to use checksums
fce050ffb25e0c2ae7b1e53d7d0fe59904a9ad28951992f74e80d6666deb8542
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.30-py3-none-any.whl

Download URL xctype-0.0.30-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dabf0ca64bad5eb1c99f2a8169807ab41f85dccd892120e9230fe4879a6fba29
BLAKE2b-256 checksum
How to use checksums
74888d9fafa1620baae52605f891a0bf3dcf572fedbdee009dc2c92de19d8b7f
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

This release

0.0.30 This release

2 release files

0.0.29

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