What problem does it solve?
The Zig↔Python binding layer often requires boilerplate and careful management of wrappers and imports; Pyzig provides a coherent structure and tooling to streamline this process.
Save time and reduce errors when extending Python with Zig code.
Core Features & Use Cases
- Binding generation: Exposes Zig APIs to Python with minimal boilerplate and safe lifetimes.
- Build-on-import and integration: Supports editable installs that compile on import and sync type stubs.
- Ownership rules and lifecycle management: Documents and enforces ownership to prevent memory leaks or use-after-free.
- Use Case: Add a new Zig API to Python by updating the binding layer, rebuilding, and importing it in Python tests.
Quick Start
Install dependencies, run ato dev compile, then in Python import faebryk.core.zig and test minimal binding usage.