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.5.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for hello_c_extension-0.5-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88ba8d545ff06c2db374f764b059bdbfc85b94a3213b4cd5415b557462c07f2f |
|
MD5 | 78722271396cb9c0d927bfc1467547be |
|
BLAKE2b-256 | 904553f6521fd11413b9ac889095594724ca43646645488233a9516f63081c5b |