Utility that automates turning simple C classes into Python objects
Project description
Crelm
The Crelm package provides a relatively simple API around the CFFI system. Give it C code or source files, it gives you a package with bindings to functions and structs. Easiest way to get started is hack up the examples in the repo.
Installation
pip3 install crelm
Simple Demo
from crelm import Factory
paste = Factory(debug=False, verbose=True).create_Tube('add2') \
.add_source_text('int add2(int a, int b) { return a + b; }') \
.squeeze()
print(f'2 + 3 = {paste.add2(2, 3)}')
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 crelm-0.0.36.tar.gz.
File metadata
- Download URL: crelm-0.0.36.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.7 Linux/5.19.0-1028-lowlatency
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0fc23da6b2fd98e12abcda15b47b9ed78d14d62a0d86aaaefb881cb5f907a9e
|
|
| MD5 |
0f61e3d9a2df7257e1fefad287c94f23
|
|
| BLAKE2b-256 |
154688c99890c1a0c05b21806bd790131b3dcc2af7546d8afcad6b0126cdf532
|
File details
Details for the file crelm-0.0.36-py3-none-any.whl.
File metadata
- Download URL: crelm-0.0.36-py3-none-any.whl
- Upload date:
- Size: 34.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.7 Linux/5.19.0-1028-lowlatency
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
973d0b0f2a719536ad56858a094aa199dfe745258888469618e33343ac6de5e3
|
|
| MD5 |
701d3a63cf148b460d112e2d16b93189
|
|
| BLAKE2b-256 |
3ad3c11a1dbb9424e338bf06237c2bbed23309caf1b793854cb5e83fdae46e23
|