https://github.com/astrofrog/calling-c-libraries-from-python
Experiments with linking to C libraries from Python
https://github.com/astrofrog/calling-c-libraries-from-python
Last synced: 18 days ago
JSON representation
Experiments with linking to C libraries from Python
- Host: GitHub
- URL: https://github.com/astrofrog/calling-c-libraries-from-python
- Owner: astrofrog
- Created: 2015-11-30T15:16:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-30T15:16:48.000Z (over 10 years ago)
- Last Synced: 2025-01-04T03:40:46.024Z (over 1 year ago)
- Language: Python
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Examples of wrapping C libraries with Python
--------------------------------------------
### ctypes
To run the example:
```
cd ctypes
./do.sh
```
This makes a shared C library, then interfaces to it from Python using ctypes.
### Cython
To run the example:
```
cd ctypes
./do.sh
```
This makes a shared C library, then interfaces to it from Python using Cython.