GitHunt
GE

GenieTim/simple_setup_test_py_cpp

A public test of a setup for a C++/Python hybrid Python package with tests, codecov, CMake and libraries

simple_setup_test_py_cpp

Total Code Test Coverage
Run Tests
Publish DocumentationPyPI version
PyPI download month
PyPI license

A sample setup of Pybind11 with Catch2 and Python tests.
In particular, it's used as a playground to test and experiment and fix,
such as

  • getting coverage for separate header and non-header tests

The following belongs to the bootstrap, I would not recommend to actually install this package (it has more use if you use it as a template for your pybind11 package project).

Installation

Use pip:

pip install simple_setup_test_py_cpp

Usage

NOTE: currently, this release's API is unstable and subject to change.

See the documentation for a current list of all available functions.

Example

Example usage can be found in the documentation, the tests,
the CLI application or in the following code snippet:

from simple_setup_test_py_cpp import SampleClass

sample = SampleClass()

sample.set_value(12)
assert sample.get_value() == 12

Languages

Python28.7%CMake26.8%C++22.8%Shell15.7%Jinja5.9%

Contributors

GNU General Public License v3.0
Created February 14, 2023
Updated March 25, 2025