Skip to main content

Utilities for writing C++ extension modules.

Project description

GitHub Actions status https://badge.fury.io/py/libpy.svg

libpy is a library to help you write amazing Python extensions in C++. libpy makes it easy to expose C++ code to Python. libpy lets you automatically wrap functions and classes. libpy is designed for high performance and safety: libpy extension modules should be both faster and safer than using the C API directly.

Full documentation

Requirements

libpy supports:

  • macOS/Linux

  • Python >=3.5

libpy requires:

  • gcc>=9 or clang>=10

  • numpy>=1.11.3

Optional Requirements

libpy optionally provides wrappers for the following libraries:

  • google sparsehash

Install

To install for development:

$ make

Otherwise, pip install libpy, making sure CC and CXX environment variables are set to the the right compiler.

Tests

To run the unit tests, invoke:

$ make test

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

libpy-0.2.3.tar.gz (177.6 kB view details)

Uploaded Source

File details

Details for the file libpy-0.2.3.tar.gz.

File metadata

  • Download URL: libpy-0.2.3.tar.gz
  • Upload date:
  • Size: 177.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for libpy-0.2.3.tar.gz
Algorithm Hash digest
SHA256 cce584535d2ff847dd9039a91b31bf1f461f7b0a940035467aff5172a0569dc4
MD5 fec492149ecda98f34d715f54ea5e0d4
BLAKE2b-256 a505f4be2a7512d7cb0ff160f7eb3bba87836728ef6c5c957fbad5d8e3b11b4a

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