https://github.com/bsolomon1124/hello-c-extension
Showcase use and packaging of a C++ extension module
https://github.com/bsolomon1124/hello-c-extension
cpp python python3
Last synced: about 1 year ago
JSON representation
Showcase use and packaging of a C++ extension module
- Host: GitHub
- URL: https://github.com/bsolomon1124/hello-c-extension
- Owner: bsolomon1124
- License: mit
- Created: 2019-10-08T13:52:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-05T13:45:00.000Z (about 6 years ago)
- Last Synced: 2025-03-22T17:44:14.951Z (about 1 year ago)
- Topics: cpp, python, python3
- Language: Python
- Homepage: https://pypi.org/project/hello-c-extension/
- Size: 7.81 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hello-c-extension
Showcase use and packaging of a C++ extension module.
```bash
$ python -m pip install hello-c-extension
```
Use:
```python
>>> from cmod import CONSTANT, pymod, _cmod
>>> CONSTANT
10
>>> pymod.hello()
Hello from Python!
>>> _cmod.foo()
5
>>> pymod
>>> _cmod
```