Showcase use and packaging of a C++ extension module
Project description
hello-c-extension
Showcase use and packaging of a C++ extension module.
$ python -m pip install hello-c-extension
Use:
>>> from cmod import CONSTANT, pymod, _cmod
>>> CONSTANT
10
>>> pymod.hello()
Hello from Python!
>>> _cmod.foo()
5
>>> pymod
<module 'cmod.pymod' from '.../site-packages/cmod/pymod.py'>
>>> _cmod
<module 'cmod._cmod' from '.../site-packages/cmod/_cmod.cpython-37m-x86_64-linux-gnu.so'>
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hello-c-extension-0.2.tar.gz
(1.8 kB
view hashes)