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.4.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.4-py3-none-any.whl
(6.7 kB
view details)
File details
Details for the file py2c-0.0.4.tar.gz.
File metadata
- Download URL: py2c-0.0.4.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd6e8a3000d66fe96dd5f87712daabc06bb892d8a599a50e86a5837211ef70d6
|
|
| MD5 |
413def72c7cb6d1f8327bf47a038207c
|
|
| BLAKE2b-256 |
c76bc8084b795eeef263f658344e957d29431a8de657ffda7c47bfacd5f5bb1f
|
File details
Details for the file py2c-0.0.4-py3-none-any.whl.
File metadata
- Download URL: py2c-0.0.4-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3460302255cb8ee6b88faf88869576029225c86661a4ddbb95c5e8c7688652c
|
|
| MD5 |
7b78030315558597309760f655ced12a
|
|
| BLAKE2b-256 |
e089ec743fbdfe7b0d82d9ca37c3dda527810cfd14791298c6c0a7a4aa07e7fb
|