A Python package wrapping stormpci.h via PyBind11 for interfacing with StormPCI and reading binary files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
dependabot[bot] b33516bc1c
chore: bump pypa/cibuildwheel from 2.3.1 to 2.4.0 (#100)
3 years ago
.github chore: bump pypa/cibuildwheel from 2.3.1 to 2.4.0 (#100) 3 years ago
conda.recipe feat: support setup helpers (#60) 5 years ago
docs chore: drop Python 2, require Python 3.6+ (#91) 4 years ago
src feat: support setup helpers (#60) 5 years ago
tests Configure tests on Travis and AppVeyor 9 years ago
.appveyor.yml chore: drop Python 2, require Python 3.6+ (#91) 4 years ago
.gitignore feat: support setup helpers (#60) 5 years ago
.pre-commit-config.yaml chore: drop Python 2, require Python 3.6+ (#91) 4 years ago
.travis.yml ci: update workflows (#73) 4 years ago
LICENSE Example project built with pybind11 9 years ago
README.md chore: drop Python 2, require Python 3.6+ (#91) 4 years ago
pyproject.toml chore: drop Python 2, require Python 3.6+ (#91) 4 years ago
setup.py chore: drop Python 2, require Python 3.6+ (#91) 4 years ago

README.md

python_example

Gitter

CI status
Linux/macOS Travis Travis-CI
MSVC 2015 AppVeyor
conda.recipe Conda Actions Status
pip builds Pip Actions Status
cibuildwheel Wheels Actions Status

An example project built with pybind11. This requires Python 3.6+; for older versions of Python, check the commit history.

Installation

  • clone this repository
  • pip install ./python_example

CI Examples

There are examples for CI in .github/workflows. A simple way to produces binary "wheels" for all platforms is illustrated in the "wheels.yml" file, using cibuildwheel. You can also see a basic recipe for building and testing in pip.yml, and conda.yml has an example of a conda recipe build.

Building the documentation

Documentation for the example project is generated using Sphinx. Sphinx has the ability to automatically inspect the signatures and documentation strings in the extension module to generate beautiful documentation in a variety formats. The following command generates HTML-based reference documentation; for other formats please refer to the Sphinx manual:

  • cd python_example/docs
  • make html

License

pybind11 is provided under a BSD-style license that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.

Test call

import python_example
python_example.add(1, 2)