Define, manage, and convert C types in Python via ctypes, from AST or C declarations.
Project description
ctypespec
ctypespec is a Python utility that parses C language type definitions and automatically generates equivalent ctypes structures. It is useful when integrating C libraries into Python projects through the ctypes module.
Features
- Parses C type definitions, including structs and typedefs.
- Converts C declarations to Python
ctypesclasses. - Utilizes AST parsing and Clang tooling for accurate analysis.
Installation
Install from source using pip:
pip install ctypespec
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 ctypespec-0.1.6.tar.gz.
File metadata
- Download URL: ctypespec-0.1.6.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c7fb6266ebf3a7f61dfdbd8830d571c7e9d405deda3b9c57107d432df9111d3
|
|
| MD5 |
79b1672df952799537f787c0efca9ba7
|
|
| BLAKE2b-256 |
9b77197c97980a821d1450ec8ed77232598b49f9fd8d11fef0f055894dc855a6
|
File details
Details for the file ctypespec-0.1.6-py3-none-any.whl.
File metadata
- Download URL: ctypespec-0.1.6-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e14fa47b52ef41b26d486004cf2a9cc51e873965f171a4bbb08affb6e5cb0ae
|
|
| MD5 |
469e34997f44c3df85d9503d5abd2f89
|
|
| BLAKE2b-256 |
8ebb4eb921c3b87e3d64088e8d1365e63950ae5b96e3443e11c75d7bcf74e5a4
|