Skip to main content

Zig PyPI distribution

Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software. The ziglang Python package redistributes the Zig toolchain so that it can be used as a dependency of Python projects.

Rationale

Although Zig is useful in itself, the Zig toolchain includes a drop-in C and C++ compiler, zig cc, based on clang. Unlike clang itself, zig cc is standalone: it does not require additional development files to be installed to target any of the platforms it supports. Through zig cc, Python code that generates C or C++ code can build it without any external dependencies.

Usage

To run the Zig toolchain from the command line, use:

python -m ziglang

To run the Zig toolchain from a Python program, use sys.executable to locate the Python binary to invoke. For example:

import sys, subprocess

subprocess.call([sys.executable, "-m", "ziglang"])

Binary wrapper

The ziglang Python package installs a binary wrapper for the Zig compiler under the name python-zig; the name is different to avoid conflicts with any system-wide or user-wide zig binaries that may be already installed.

Using with uv

The Zig compiler distributed in this Python package can be launched by uv without installation:

uvx --from ziglang python-zig

License

The Zig license.

Metadata

Release files for ziglang 0.17.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for ziglang 0.17.1
File Actions
ziglang-0.17.1-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for ziglang-0.17.1-py3-none-win_arm64.whl
ziglang-0.17.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for ziglang-0.17.1-py3-none-win_amd64.whl
ziglang-0.17.1-py3-none-win32.whl Python 3 none Windows x86-32 Details for ziglang-0.17.1-py3-none-win32.whl
ziglang-0.17.1-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl Python 3 none Linux musl 1.1+ RISC-V 64, Linux glibc 2.31+ RISC-V 64 Details for ziglang-0.17.1-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl
ziglang-0.17.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.musllinux_1_1_s390x.whl Python 3 none Linux musl 1.1+ IBM System/390x, Linux glibc 2.17+ IBM System/390x Details for ziglang-0.17.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.musllinux_1_1_s390x.whl
ziglang-0.17.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl Python 3 none Linux glibc 2.17+ PowerPC 64-le, Linux musl 1.1+ PowerPC 64-le Details for ziglang-0.17.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl
ziglang-0.17.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl Python 3 none Linux glibc 2.17+ ARMv7l, Linux musl 1.1+ ARMv7l Details for ziglang-0.17.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl
ziglang-0.17.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl Python 3 none Linux musl 1.1+ ARM64, Linux glibc 2.17+ ARM64 Details for ziglang-0.17.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
ziglang-0.17.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl Python 3 none Linux glibc 2.12+ x86-64, Linux musl 1.1+ x86-64 Details for ziglang-0.17.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
ziglang-0.17.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl Python 3 none Linux musl 1.1+ x86-32, Linux glibc 2.12+ x86-32 Details for ziglang-0.17.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl
ziglang-0.17.1-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details for ziglang-0.17.1-py3-none-macosx_13_0_x86_64.whl
ziglang-0.17.1-py3-none-macosx_13_0_arm64.whl Python 3 none macOS 13.0+ ARM64 Details for ziglang-0.17.1-py3-none-macosx_13_0_arm64.whl

Total release size: 1.2 GB

Release files / ziglang-0.17.1-py3-none-win_arm64.whl

Download URL ziglang-0.17.1-py3-none-win_arm64.whl
Size 97.4 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
27a8da5f8eaa0e76ebbc7c2594130ed4646c1101ada2ce0aa86fe580c74154b9
BLAKE2b-256 checksum
How to use checksums
7034a1d775ceaf325b08c3aca909865e057919d0fe1355e2b59081500ef230a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / ziglang-0.17.1-py3-none-win_amd64.whl

Download URL ziglang-0.17.1-py3-none-win_amd64.whl
Size 101.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
69c3dfc3aff6a297ec4017aa904782c0e450eb988982d7f675d83edce27526fb
BLAKE2b-256 checksum
How to use checksums
c86c2013114fa780f0cf490cdc98bdd5bf7dce706a5dbd86e50ec4132cf7d4b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / ziglang-0.17.1-py3-none-win32.whl

Download URL ziglang-0.17.1-py3-none-win32.whl
Size 103.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
ae28f1f1150b95c8b1bb5e185d18e6c542877dc480e2476ccc81dac41f191b71
BLAKE2b-256 checksum
How to use checksums
c39e6333441c72f2099c7c181213309982e53ec3cb157f5b86a3a0155a06896b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / ziglang-0.17.1-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl

Download URL ziglang-0.17.1-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl
Size 101.5 MB
Tags Linux glibc 2.31+ RISC-V 64 Linux musl 1.1+ RISC-V 64 Python 3
SHA-256 checksum
How to use checksums
d65ae4223b0c351cb3b4596262b8d9773acc9ca94ef8ea9b5fe3ddfa07dd204f
BLAKE2b-256 checksum
How to use checksums
ed4703065971cc3300b6b470bda327e4871f4751cdc593c36b12d6bf367b2749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / ziglang-0.17.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.musllinux_1_1_s390x.whl

Download URL ziglang-0.17.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.musllinux_1_1_s390x.whl
Size 107.1 MB
Tags Linux glibc 2.17+ IBM System/390x Linux musl 1.1+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
87f24e5cdca55f5d47c1e20570eebb61a53957fafe4c35c69740e13affe407ba
BLAKE2b-256 checksum
How to use checksums
dedac3e542f85d324cf7b785bbbd5c0c7b955d0e3fb6e78a0b1a33a0590b611f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / ziglang-0.17.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl

Download URL ziglang-0.17.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl
Size 107.5 MB
Tags Linux glibc 2.17+ PowerPC 64-le Linux musl 1.1+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
d3bf27478d4593f2df7daf5c59b616a543b8f9e2cc9235bef84d8e54862a4334
BLAKE2b-256 checksum
How to use checksums
04afb1fdcbe505ebbdc49dcc0ccd119d09d224694bdfdf112abd09a1b7d2b703
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / ziglang-0.17.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl

Download URL ziglang-0.17.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl
Size 99.1 MB
Tags Linux glibc 2.17+ ARMv7l Linux musl 1.1+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
7ec229ead4a08f3bc537ed33fa8c0f811739b81a0d05afbea89db30afb4df1cc
BLAKE2b-256 checksum
How to use checksums
7cc8c7c2cc2da982743373a87ea115b9a5c8509396766fe1e29e49cbc19fd6b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / ziglang-0.17.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL ziglang-0.17.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Size 98.1 MB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
b7c5f02fccd40f89b999ee16a1f5ddced56e6182370f8affe494bcf8a28cf07e
BLAKE2b-256 checksum
How to use checksums
9172bb7c4f098ba3e535fa2ebefd9f26327ba63fb0672562959255cb5dd37aff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / ziglang-0.17.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl

Download URL ziglang-0.17.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
Size 101.1 MB
Tags Linux glibc 2.12+ x86-64 Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
ea6cc5d87b033cf0aedfbc8f9549a908cae6c50ac31f1698188fa48a74524b54
BLAKE2b-256 checksum
How to use checksums
59e32a34676370a11c36b7cd04ffb2439c1089c0530cf4b01408c77cf7f8d9c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / ziglang-0.17.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl

Download URL ziglang-0.17.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl
Size 104.6 MB
Tags Linux glibc 2.12+ x86-32 Linux musl 1.1+ x86-32 Python 3
SHA-256 checksum
How to use checksums
d0549d5db63961ad9ed83ef628a45e3309542410dbcb6010116f4f2a3274d966
BLAKE2b-256 checksum
How to use checksums
cbdb1f9ae88f9399801f49e2ca297998a9e8602c23c724616e5d770b4f808b8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / ziglang-0.17.1-py3-none-macosx_13_0_x86_64.whl

Download URL ziglang-0.17.1-py3-none-macosx_13_0_x86_64.whl
Size 104.5 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
4e0b4b9c02b8d0d220e9948010f860b62ff11d96abb39762eca5fa2ef3f7bc97
BLAKE2b-256 checksum
How to use checksums
17f6f4dfc8cf0e510980fda251a8edf99823b9446f5d7a2a6a24801e55e09c28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / ziglang-0.17.1-py3-none-macosx_13_0_arm64.whl

Download URL ziglang-0.17.1-py3-none-macosx_13_0_arm64.whl
Size 100.4 MB
Tags Python 3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
09953b6af7f64168b915180a42774f520f92d86ef6331b28e33915c7e1f0bb23
BLAKE2b-256 checksum
How to use checksums
eae14a9a97324fcf2d292c14a2e0121ea0df86c01d0c307ea24fa35aebaccd15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for ziglang 0.17.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page