pybind/python_example
关于
使用基于 Python 的构建系统构建的 pybind11 模块示例
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文python_example
| CI | status |
|---|---|
| pip builds | |
cibuildwheel |
An example project built with pybind11. This requires Python 3.11+; 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/docsmake 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)
探索相关项目
加载中…