An open API service indexing awesome lists of open source software.

https://github.com/fernandezfran/ctypes_example


https://github.com/fernandezfran/ctypes_example

c ctypes numpy python

Last synced: 19 days ago
JSON representation

Awesome Lists containing this project

README

          

# ctypes example

simple example to understand the basics of interaction of Python with C using
ctypes and NumPy

## workflow

1. generate the shared library from `core.c` code using the `Makefile`:
```
make
```

2. install Python requirements:
```
python -m pip install numpy pytest
```

3. run the tests:
```
pytest test_main.py
```