# `pyforge-ffi` Examples
These example crates are a collection of toy extension modules built with
`pyforge-ffi`. They are all tested using `nox` in PyForge's CI.
Below is a brief description of each of these:
| `sequential` | Illustrates how to use pyforge-ffi to write subinterpreter-safe modules using multi-phase module initialization |
## Creating new projects from these examples
To copy an example, use [`cargo-generate`](https://crates.io/crates/cargo-generate). Follow the commands below, replacing `<example>` with the example to start from:
```bash
$ cargo install cargo-generate
$ cargo generate --git https://github.com/abdulwahed-sweden/pyforge examples/<example>
```
(`cargo generate` will take a little while to clone the PyForge repo first; be patient when waiting for the command to run.)