Pyzig

Official

Bridge Zig and Python for seamless interop.

Authoratopile
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Pyzig
Download link: https://github.com/atopile/atopile/archive/main.zip#pyzig

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.