Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ziglang-0.15.1-py3-none-win_arm64.whl (89.7 MB view details)

Uploaded Python 3Windows ARM64

ziglang-0.15.1-py3-none-win_amd64.whl (94.0 MB view details)

Uploaded Python 3Windows x86-64

ziglang-0.15.1-py3-none-win32.whl (96.1 MB view details)

Uploaded Python 3Windows x86

ziglang-0.15.1-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl (94.1 MB view details)

Uploaded Python 3manylinux: glibc 2.31+ riscv64musllinux: musl 1.1+ riscv64

ziglang-0.15.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.musllinux_1_1_s390x.whl (99.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390xmusllinux: musl 1.1+ s390x

ziglang-0.15.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl (99.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64lemusllinux: musl 1.1+ ppc64le

ziglang-0.15.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl (91.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARMv7lmusllinux: musl 1.1+ ARMv7l

ziglang-0.15.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl (90.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64musllinux: musl 1.1+ ARM64

ziglang-0.15.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl (93.5 MB view details)

Uploaded Python 3manylinux: glibc 2.12+ x86-64musllinux: musl 1.1+ x86-64

ziglang-0.15.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl (97.3 MB view details)

Uploaded Python 3manylinux: glibc 2.12+ i686musllinux: musl 1.1+ i686

ziglang-0.15.1-py3-none-macosx_12_0_x86_64.whl (97.0 MB view details)

Uploaded Python 3macOS 12.0+ x86-64

ziglang-0.15.1-py3-none-macosx_12_0_arm64.whl (93.0 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

File details

Details for the file ziglang-0.15.1-py3-none-win_arm64.whl.

File metadata

  • Download URL: ziglang-0.15.1-py3-none-win_arm64.whl
  • Upload date:
  • Size: 89.7 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.9

File hashes

Hashes for ziglang-0.15.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 5965248dd7f72769ff339a04bd8e29e13fa205758c64766ef9cc55eaafbaedb8
MD5 1e7e07dd6d724524f1c1409d92ddcd1c
BLAKE2b-256 ca0a6b15293c30f5f555f1313010855d588004db1166af51bbc697a271cc1ce2

See more details on using hashes here.

File details

Details for the file ziglang-0.15.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: ziglang-0.15.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 94.0 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.9

File hashes

Hashes for ziglang-0.15.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 dae4c6aef5bf9d64f6eb71ae57603e2fd0ad5e79efdd5ca3ea058fb1e738d961
MD5 e0209682e7d23decaa6c3a4716e1f945
BLAKE2b-256 cdf37b0fb6f1f7705221694f90c4756480646c1a08f6ae94e9f567ac4d1c4d17

See more details on using hashes here.

File details

Details for the file ziglang-0.15.1-py3-none-win32.whl.

File metadata

  • Download URL: ziglang-0.15.1-py3-none-win32.whl
  • Upload date:
  • Size: 96.1 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.9

File hashes

Hashes for ziglang-0.15.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 b8ba52adc1401c470707a420f2e5e199fce142436717aa822e00a93a18a9ea25
MD5 2e28ee36fc52bdbb71ae9a88eb376097
BLAKE2b-256 b69b5b11a0f78ab3475e25c0e53e240e39b2c2fcfe1e651f639834860755d7cf

See more details on using hashes here.

File details

Details for the file ziglang-0.15.1-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl.

File metadata

File hashes

Hashes for ziglang-0.15.1-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl
Algorithm Hash digest
SHA256 6a49c03d692e31a9a312ec45c0829bc281572196a9df52318bb0be0d05ae20ea
MD5 9d97b3fc9e5d80212f65379a4ae25821
BLAKE2b-256 f010e1f17be5cdbaae6932c110b1ce3d877fbaeeb40b34a18390324219110da1

See more details on using hashes here.

File details

Details for the file ziglang-0.15.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.musllinux_1_1_s390x.whl.

File metadata

File hashes

Hashes for ziglang-0.15.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.musllinux_1_1_s390x.whl
Algorithm Hash digest
SHA256 9118903a47bbcc747ce47b1456c552a04bb6a0e1be28275ab20bbccf8104e474
MD5 41fbd3d7cc4acc6d0f6906929963ad87
BLAKE2b-256 cc1995c05b330c70275c79cd1964e9651d87c67876ebc70d148432748f629b95

See more details on using hashes here.

File details

Details for the file ziglang-0.15.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl.

File metadata

File hashes

Hashes for ziglang-0.15.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl
Algorithm Hash digest
SHA256 b261fe992100fdfb3e61cdd0758335ac8514c8aa4029e3604490648c6a337466
MD5 dec681dbad8cbdf1a2c49594a2133eac
BLAKE2b-256 08a289539bbe0ad375cb72b788ff11724f408f870a045c7d8dc9451066bd6526

See more details on using hashes here.

File details

Details for the file ziglang-0.15.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl.

File metadata

File hashes

Hashes for ziglang-0.15.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl
Algorithm Hash digest
SHA256 f9d2493ff7c44967c584212100ce57bb00800ec9545527acfce677b4b3225242
MD5 83c4a49bc89111aefa378eaca50a03f1
BLAKE2b-256 bf1289d3ac45c7072de940328c5bf52e9846797237423ec4415b5c7e7775a2e1

See more details on using hashes here.

File details

Details for the file ziglang-0.15.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for ziglang-0.15.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 6c32697f9e165b7b6c5950ab0a1cd2e2bc3e72f4ff2d59bc5121b2b71955a77a
MD5 75aba15a0fd55c01e080507b263798ea
BLAKE2b-256 fd0bea4ac1a1242c478c7ccbf0c031c9f6f58290c5ea910490fc0b5a3772648e

See more details on using hashes here.

File details

Details for the file ziglang-0.15.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for ziglang-0.15.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 4e45994a0e608d9b16ecad255698f5557a2e24de0bd7ba9efb156ab3f3683d9a
MD5 6e6249cf7535bf8a9f21eba73f7ae76f
BLAKE2b-256 30a08aabb5f4e0862340ebb4d86f614567a5492e4e1ac09639c9c759404babe1

See more details on using hashes here.

File details

Details for the file ziglang-0.15.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for ziglang-0.15.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 129c6b9b9e428ae48a6949ea6da55239f8bd6480656df1eb0b6947f75f851fdf
MD5 fb91e03d2789d23106397b8a73e9e313
BLAKE2b-256 26dad6fd19f278745ae187ca46e907f83b4c83142f5f6c5de8f159879cc70d4b

See more details on using hashes here.

File details

Details for the file ziglang-0.15.1-py3-none-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for ziglang-0.15.1-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 77348af083caf1c364466b931b5e7f9608687c88670bdda77c237570096bde09
MD5 45483500305998c6d1cc81a01851cca3
BLAKE2b-256 c73d4375a5c27ad3fd72d7a7ba2f013bdd9a99f9e0dae847cbfdfe56f9cb0f0b

See more details on using hashes here.

File details

Details for the file ziglang-0.15.1-py3-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for ziglang-0.15.1-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 f2f92404599822152eff2ef2830632e9ebeb18e55168dddd5f68f6bfeb2c5f4d
MD5 59dc86a42b7170856d134afda85bab17
BLAKE2b-256 284dcf640c988231f36c796f7310cf54e89866c96e63cd6599bac4bbbdcf7014

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page