Skip to main content

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

Metadata

Release files for c2py 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for c2py 0.0.1
File Size Uploaded
c2py-0.0.1.tar.gz 1.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for c2py 0.0.1
File Interpreter ABI Platform
c2py-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.8 kB

Release files / c2py-0.0.1.tar.gz

Download URL c2py-0.0.1.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
175f3b854b5b0fe155d86affc06a0118b237bfd678776a0f0d8912bf71f0bfbf
BLAKE2b-256 checksum
How to use checksums
90d4f3304fbf71522f2331ae9f1d57aae626626b967278731621fa2caea927b4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / c2py-0.0.1-py3-none-any.whl

Download URL c2py-0.0.1-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7667fe07f2a46f29fb4729837dce83b06cdd502b0c8042449f964fc4aad87f3c
BLAKE2b-256 checksum
How to use checksums
a4d91a6ce553e964d0f43e3a5137c47550fd543020cf9e27f706e3898c3d8c98
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page