Skip to main content

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)

Uploaded Source

Built Distribution

hello_c_extension-0.5-cp38-cp38-macosx_10_15_x86_64.whl (4.1 kB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

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

Hashes for hello-c-extension-0.5.tar.gz
Algorithm Hash digest
SHA256 1285736172dee37208fdf7f858ae2c43cfa79f95082e375ed7a08ef48f3f92c0
MD5 e25223e8d04ebee1a22e7ac453c6b593
BLAKE2b-256 edfd5d6d67815719a80b5f820a9ebfa138ee676fa35fd35a7d16a7186ce1fac3

See more details on using hashes here.

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

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

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page