skillfed

ziglang

Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

ziglang v0.16.0 873.0K downloads/30d#4,839 on PyPI200
Permissive license MIT Abandoned released

What it is and what it does

ziglang is a Python package that redistributes the Zig programming language toolchain, including its standalone C and C++ compiler (zig cc). Unlike system-installed Zig or clang, this distribution requires no external development files and works across multiple platforms and architectures. It allows Python projects to invoke the Zig compiler either from the command line via `python -m ziglang` or programmatically through subprocess calls, making it useful for projects that generate or build C/C++ code as part of their workflow.

The package installs a binary wrapper named `python-zig` to avoid conflicts with system Zig installations. It supports a wide range of platforms including macOS (ARM and x86_64), Linux (x86_64, i686, ARM, PowerPC, s390x, RISC-V), and Windows (x86_64, ARM, x86). The repository is archived and marked abandoned, so the package is no longer actively maintained.

Use it for:

  • Bundle Zig compiler with Python projects that generate or build C/C++ code without requiring external toolchain setup.
  • Use zig cc as a standalone C/C++ compiler in Python build scripts without installing system development files.
  • Cross-compile C/C++ code for multiple target platforms from a Python project using Zig's built-in cross-compilation support.
  • Distribute Python packages that depend on Zig-based build tools as a self-contained dependency.
  • Run Zig code or scripts from within Python automation or CI/CD pipelines without manual toolchain installation.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Distributes the Zig programming language toolchain and its standalone C/C++ compiler (zig cc) as a Python package, enabling Python projects to use Zig as a build dependency without external system libraries.

Yes, if you need Zig as a build dependency in a Python project and want to avoid external system setup. However, note that the repository is archived and abandoned—the package will not receive updates for new Zig releases or Python compatibility issues. Suitable for stable, long-lived projects that do not require ongoing toolchain updates; risky for projects expecting active maintenance or frequent Zig version upgrades.

Install

ziglang on PyPI

pip

pip install ziglang

uv

uv add ziglang

poetry

poetry add ziglang

Installing ziglang

Before you install

Medium install friction due to platform-specific binary wheels for multiple architectures (x86_64, ARM, PowerPC, s390x, RISC-V). Repository is archived and marked abandoned as of the latest commit; no active maintenance.

License in practice

MIT license permits commercial and private use with minimal restrictions, making it suitable for most projects that need to bundle Zig.

Quickstart

pip install ziglang
python -m ziglang
# Or via uv:
# uvx --from ziglang python-zig

Requires Python ~=3.5; binary wheels are platform-specific and must match your OS and CPU architecture.

Verify before relying

  • Whether the abandoned repository status affects long-term compatibility with future Zig language releases.
  • Performance or compatibility implications of using an archived distribution package in active projects.

Package facts

License MIT (permissive)
Python support supports the current Python release (~=3.5)
Install friction medium — platform-specific wheel
Runtime dependencies none
Maintenance abandoned — 121 days since the last release
Last repo commit (repository archived)
First released
Downloads 872,993/month — #4,839 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: ziglang-0.16.0-py3-none-macosx_12_0_arm64.whl; ziglang-0.16.0-py3-none-macosx_12_0_x86_64.whl; ziglang-0.16.0-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl; ziglang-0.16.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl; ziglang-0.16.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl; ziglang-0.16.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl; ziglang-0.16.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl; ziglang-0.16.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.musllinux_1_1_s390x.whl; ziglang-0.16.0-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl; ziglang-0.16.0-py3-none-win32.whl; ziglang-0.16.0-py3-none-win_amd64.whl; ziglang-0.16.0-py3-none-win_arm64.whl

Development Status :: 4 - BetaIntended Audience :: DevelopersProgramming Language :: ZigTopic :: Software Development :: Build ToolsTopic :: Software Development :: Code GeneratorsTopic :: Software Development :: Compilers

Tags

zig compiler python packagezig toolchain distributionstandalone c compiler pythonzig cc build toolpython zig integrationcross-platform c compilerzig language pypi
build-toolcross-compilationc-compiler

More Build Tools packages