pyo3/examples
Bruno Kolenbrander c9b26f57cd
Merge pull request #2657 from mejrs/decorator_fix
Update decorator to use Cell counter
2022-10-10 19:55:36 +02:00
..
decorator Merge pull request #2657 from mejrs/decorator_fix 2022-10-10 19:55:36 +02:00
maturin-starter release: 0.17.2 2022-10-04 08:13:53 +01:00
setuptools-rust-starter release: 0.17.2 2022-10-04 08:13:53 +01:00
word-count release: 0.17.2 2022-10-04 08:13:53 +01:00
Cargo.toml release: 0.17.2 2022-10-04 08:13:53 +01:00
README.md Switch from tox to nox 2022-01-17 00:24:33 +08:00

README.md

PyO3 Examples

These example crates are a collection of toy extension modules built with PyO3. They are all tested using nox in PyO3's CI.

Below is a brief description of each of these:

Example Description
decorator A project showcasing the example from the Emulating callable objects chapter of the guide.
maturin-starter A template project which is configured to use maturin for development.
setuptools-rust-starter A template project which is configured to use setuptools_rust for development.
word-count A quick performance comparison between word counter implementations written in each of Rust and Python.

Creating new projects from these examples

To copy an example, use cargo-generate. Follow the commands below, replacing <example> with the example to start from:

$ cargo install cargo-generate
$ cargo generate --git https://github.com/PyO3/pyo3 examples/<example>

(cargo generate will take a little while to clone the PyO3 repo first; be patient when waiting for the command to run.)