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.3.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.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for py2c-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1ee996fc6f7ccdee521b5d8dd35bce5e0d16d14391a238bb812124bab7746e92
MD5 4e7576a9abfabd35972adc4954529e48
BLAKE2b-256 0b2a4b2a3aabe52c2af35c807b109e85791d0ac5ebb0bed00b75b4510ac4bd6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2c-0.0.3-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.13

File hashes

Hashes for py2c-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1cd12ac697cad557476d7e8bbbcb4d51ced57b8ff1eeb0ba478158e0d04b20c3
MD5 bf434bef47b3499ba17ff20578b656aa
BLAKE2b-256 173d2fd5d19e1cd342aee2f87faf35888e124c8d6f7f01875c59c3199bfd7aa1

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