Skip to main content

Tools to bridge python and C

Project description

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

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

py2c-0.0.4.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py2c-0.0.4-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file py2c-0.0.4.tar.gz.

File metadata

  • Download URL: py2c-0.0.4.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for py2c-0.0.4.tar.gz
Algorithm Hash digest
SHA256 fd6e8a3000d66fe96dd5f87712daabc06bb892d8a599a50e86a5837211ef70d6
MD5 413def72c7cb6d1f8327bf47a038207c
BLAKE2b-256 c76bc8084b795eeef263f658344e957d29431a8de657ffda7c47bfacd5f5bb1f

See more details on using hashes here.

File details

Details for the file py2c-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: py2c-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for py2c-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d3460302255cb8ee6b88faf88869576029225c86661a4ddbb95c5e8c7688652c
MD5 7b78030315558597309760f655ced12a
BLAKE2b-256 e089ec743fbdfe7b0d82d9ca37c3dda527810cfd14791298c6c0a7a4aa07e7fb

See more details on using hashes here.

Supported by

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