Create python wrappers that call c functions (without the headaches).
Project description
c2py
Create python wrappers that call c functions, without the headaches.
In a nutshell:
from c2py import dispatch
m = dispatch(
src, # specification of the C sources (poiting to specific C functions)
convention, # optional convention of wrapping rules
**configs # specific configuration (for wrapping rules that are not covered by convention, or need to be overwritten)
)
m.python_wrapper_to_c_func(...) # now m is a module containing python wrappers to the desired c functions
Other forms:
dispatch_to_file(src, target_filepath, ...) # to get output as a persisted .py file
To install: pip install c2py
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
c2py-0.0.1.tar.gz
(1.5 kB
view details)
Built Distribution
c2py-0.0.1-py3-none-any.whl
(2.3 kB
view details)
File details
Details for the file c2py-0.0.1.tar.gz
.
File metadata
- Download URL: c2py-0.0.1.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 175f3b854b5b0fe155d86affc06a0118b237bfd678776a0f0d8912bf71f0bfbf |
|
MD5 | 0554534571bb5b107a63312c77a8a4ac |
|
BLAKE2b-256 | 90d4f3304fbf71522f2331ae9f1d57aae626626b967278731621fa2caea927b4 |
File details
Details for the file c2py-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: c2py-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7667fe07f2a46f29fb4729837dce83b06cdd502b0c8042449f964fc4aad87f3c |
|
MD5 | 85471d51ca4319615b4f856db2336ff2 |
|
BLAKE2b-256 | a4d91a6ce553e964d0f43e3a5137c47550fd543020cf9e27f706e3898c3d8c98 |