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 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xctype-0.0.4.tar.gz.
File metadata
- Download URL: xctype-0.0.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a816dd6f59ce9fd20e6965ecf37eed3fba77e47feff4ebf0351fe794c8ac9d87
|
|
| MD5 |
19ec1d0ed825ecf016fc144a6e010d45
|
|
| BLAKE2b-256 |
ceb84620c5151865935b2960617542f851fff1fd7a904e7dbeca758a153a6e49
|
Provenance
The following attestation bundles were made for xctype-0.0.4.tar.gz:
Publisher:
python-publish.yml on sebastien-riou/xctype
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xctype-0.0.4.tar.gz -
Subject digest:
a816dd6f59ce9fd20e6965ecf37eed3fba77e47feff4ebf0351fe794c8ac9d87 - Sigstore transparency entry: 172676609
- Sigstore integration time:
-
Permalink:
sebastien-riou/xctype@24346e0242529c8bcb6c18ee1a5c8402d963b7fe -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/sebastien-riou
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@24346e0242529c8bcb6c18ee1a5c8402d963b7fe -
Trigger Event:
release
-
Statement type:
File details
Details for the file xctype-0.0.4-py3-none-any.whl.
File metadata
- Download URL: xctype-0.0.4-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88817c3facd23d7d3f0cf5d695f86ebf2328e864b25036c4383ab8bc11d0e693
|
|
| MD5 |
3214ffdd6faa416136b57e6dd2b48e45
|
|
| BLAKE2b-256 |
0bde7da262e95914d47c6e6c5cec71df8093a60694fdc6d523c28606c3e5e9a9
|
Provenance
The following attestation bundles were made for xctype-0.0.4-py3-none-any.whl:
Publisher:
python-publish.yml on sebastien-riou/xctype
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xctype-0.0.4-py3-none-any.whl -
Subject digest:
88817c3facd23d7d3f0cf5d695f86ebf2328e864b25036c4383ab8bc11d0e693 - Sigstore transparency entry: 172676617
- Sigstore integration time:
-
Permalink:
sebastien-riou/xctype@24346e0242529c8bcb6c18ee1a5c8402d963b7fe -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/sebastien-riou
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@24346e0242529c8bcb6c18ee1a5c8402d963b7fe -
Trigger Event:
release
-
Statement type: