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
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 py2c-0.0.3.tar.gz.
File metadata
- Download URL: py2c-0.0.3.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ee996fc6f7ccdee521b5d8dd35bce5e0d16d14391a238bb812124bab7746e92
|
|
| MD5 |
4e7576a9abfabd35972adc4954529e48
|
|
| BLAKE2b-256 |
0b2a4b2a3aabe52c2af35c807b109e85791d0ac5ebb0bed00b75b4510ac4bd6c
|
File details
Details for the file py2c-0.0.3-py3-none-any.whl.
File metadata
- Download URL: py2c-0.0.3-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.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cd12ac697cad557476d7e8bbbcb4d51ced57b8ff1eeb0ba478158e0d04b20c3
|
|
| MD5 |
bf434bef47b3499ba17ff20578b656aa
|
|
| BLAKE2b-256 |
173d2fd5d19e1cd342aee2f87faf35888e124c8d6f7f01875c59c3199bfd7aa1
|