Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crelm-0.0.36.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

crelm-0.0.36-py3-none-any.whl (34.7 kB view details)

Uploaded Python 3

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

Hashes for crelm-0.0.36.tar.gz
Algorithm Hash digest
SHA256 e0fc23da6b2fd98e12abcda15b47b9ed78d14d62a0d86aaaefb881cb5f907a9e
MD5 0f61e3d9a2df7257e1fefad287c94f23
BLAKE2b-256 154688c99890c1a0c05b21806bd790131b3dcc2af7546d8afcad6b0126cdf532

See more details on using hashes here.

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

Hashes for crelm-0.0.36-py3-none-any.whl
Algorithm Hash digest
SHA256 973d0b0f2a719536ad56858a094aa199dfe745258888469618e33343ac6de5e3
MD5 701d3a63cf148b460d112e2d16b93189
BLAKE2b-256 3ad3c11a1dbb9424e338bf06237c2bbed23309caf1b793854cb5e83fdae46e23

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page