Metadata-Version: 2.1
Name: py2c
Version: 0.0.4
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

# 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
```

