https://github.com/fernandezfran/ctypes_example
https://github.com/fernandezfran/ctypes_example
c ctypes numpy python
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fernandezfran/ctypes_example
- Owner: fernandezfran
- Created: 2023-06-15T19:07:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-29T22:04:29.000Z (almost 2 years ago)
- Last Synced: 2025-10-25T11:16:45.209Z (3 months ago)
- Topics: c, ctypes, numpy, python
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```