Tools to bridge python and C
Project description
py2c
Tools to bridge python and C.
To install: pip install py2c
There's tools to generate Python wrappers for C code:
>>> c_filename = 'example.c'
>>> generate_python_wrappers(c_filename) # doctest: +SKIP
There's tools to generate C code from Python code:
>>> tree = ast.parse(source) # doctest: +SKIP
>>> codegen = CCodeGenerator() # doctest: +SKIP
>>> c_code = codegen.generate(tree) # doctest: +SKIP
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
py2c-0.0.5.tar.gz
(5.9 kB
view details)
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
py2c-0.0.5-py3-none-any.whl
(6.8 kB
view details)
File details
Details for the file py2c-0.0.5.tar.gz.
File metadata
- Download URL: py2c-0.0.5.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2383be2f7a9775728a0371558f6142094b7ac97b89c45b82c811f00129b87e99
|
|
| MD5 |
6e9e17211657bc9f51993cb2c8e810b2
|
|
| BLAKE2b-256 |
0b97376b1dc270f7eff851846d22f0df2f5befa8ebbd9a95dfb936a8a6ffd91e
|
File details
Details for the file py2c-0.0.5-py3-none-any.whl.
File metadata
- Download URL: py2c-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3089e37855e4ac2e087881de408c5ef0a784a5a06a39313bd0c3dd140ca000e3
|
|
| MD5 |
f0992cf1ea4307b03c3891f520cd2bd2
|
|
| BLAKE2b-256 |
27d9eef70ee5ee15134aa7a31364daced3abdd1781ed852f249d7f9e69884016
|