Metadata-Version: 2.4
Name: py2c
Version: 0.0.5
Summary: Tools to bridge python and C
Home-page: https://github.com/i2mint/py2c
License: mit
Platform: any
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pycparser
Dynamic: license-file

# py2c

Tools to bridge python and C.

To install:	```pip install py2c```

There's tools to generate Python wrappers for C code:

```python
    >>> c_filename = 'example.c'
    >>> generate_python_wrappers(c_filename)  # doctest: +SKIP
```

There's tools to generate C code from Python code:

```python
    >>> tree = ast.parse(source)  # doctest: +SKIP
    >>> codegen = CCodeGenerator()  # doctest: +SKIP
    >>> c_code = codegen.generate(tree)  # doctest: +SKIP
```

