Skip to main content

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

Metadata

Release files for py2c 0.0.5

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

Source distribution (sdist)

Source distribution for py2c 0.0.5
File Size Uploaded
py2c-0.0.5.tar.gz 5.9 kB Details

Built distribution (wheel)

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

Total release size: 12.7 kB

Release files / py2c-0.0.5.tar.gz

Download URL py2c-0.0.5.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2383be2f7a9775728a0371558f6142094b7ac97b89c45b82c811f00129b87e99
BLAKE2b-256 checksum
How to use checksums
0b97376b1dc270f7eff851846d22f0df2f5befa8ebbd9a95dfb936a8a6ffd91e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release files / py2c-0.0.5-py3-none-any.whl

Download URL py2c-0.0.5-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3089e37855e4ac2e087881de408c5ef0a784a5a06a39313bd0c3dd140ca000e3
BLAKE2b-256 checksum
How to use checksums
27d9eef70ee5ee15134aa7a31364daced3abdd1781ed852f249d7f9e69884016
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

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