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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hello-c-extension-0.5.tar.gz.
File metadata
- Download URL: hello-c-extension-0.5.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1285736172dee37208fdf7f858ae2c43cfa79f95082e375ed7a08ef48f3f92c0
|
|
| MD5 |
e25223e8d04ebee1a22e7ac453c6b593
|
|
| BLAKE2b-256 |
edfd5d6d67815719a80b5f820a9ebfa138ee676fa35fd35a7d16a7186ce1fac3
|
File details
Details for the file hello_c_extension-0.5-cp38-cp38-macosx_10_15_x86_64.whl.
File metadata
- Download URL: hello_c_extension-0.5-cp38-cp38-macosx_10_15_x86_64.whl
- Upload date:
- Size: 4.1 kB
- Tags: CPython 3.8, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88ba8d545ff06c2db374f764b059bdbfc85b94a3213b4cd5415b557462c07f2f
|
|
| MD5 |
78722271396cb9c0d927bfc1467547be
|
|
| BLAKE2b-256 |
904553f6521fd11413b9ac889095594724ca43646645488233a9516f63081c5b
|