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.16.0-py3-none-win_arm64.whl (94.3 MB view details)

Uploaded Python 3Windows ARM64

ziglang-0.16.0-py3-none-win_amd64.whl (98.7 MB view details)

Uploaded Python 3Windows x86-64

ziglang-0.16.0-py3-none-win32.whl (100.7 MB view details)

Uploaded Python 3Windows x86

ziglang-0.16.0-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl (98.4 MB view details)

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

ziglang-0.16.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.musllinux_1_1_s390x.whl (103.5 MB view details)

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

ziglang-0.16.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl (104.1 MB view details)

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

ziglang-0.16.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl (95.9 MB view details)

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

ziglang-0.16.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl (95.0 MB view details)

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

ziglang-0.16.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl (97.9 MB view details)

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

ziglang-0.16.0-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl (101.8 MB view details)

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

ziglang-0.16.0-py3-none-macosx_12_0_x86_64.whl (101.2 MB view details)

Uploaded Python 3macOS 12.0+ x86-64

ziglang-0.16.0-py3-none-macosx_12_0_arm64.whl (97.3 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

File details

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

File metadata

  • Download URL: ziglang-0.16.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 94.3 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ziglang-0.16.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 e44a5271f7b72f7980017bb615823ed52e765f96b6482d93a2fd338cd53101bf
MD5 95d337ad1ea8f95a7d7ca94aee45c175
BLAKE2b-256 f00bbff28a4acc437cb7da705bffafd81fafbbd37a23144363cecc72becaef93

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziglang-0.16.0-py3-none-win_arm64.whl:

Publisher: cd.yml on ziglang/zig-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: ziglang-0.16.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 98.7 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ziglang-0.16.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 089a16a4eb5a2f45151993342f8fabad24ff1a0723dc146642895c29208a3939
MD5 9bf0a9772b71e1186bc31e062b297c6a
BLAKE2b-256 a63cbaff40b3fc8ab4e83530246a52e8f3a5186c3606562712dfb58483b04f79

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziglang-0.16.0-py3-none-win_amd64.whl:

Publisher: cd.yml on ziglang/zig-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: ziglang-0.16.0-py3-none-win32.whl
  • Upload date:
  • Size: 100.7 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ziglang-0.16.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 f978c12b5337cf418034964de00023b7ec5ec484383dc97c6a6585f4a9105840
MD5 8ad31cd2d72e6a5882bc39882900d119
BLAKE2b-256 5df010a5203071af21bd649a0f97e29f70b710d6ad97b1ac1995a0bb30f51a71

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziglang-0.16.0-py3-none-win32.whl:

Publisher: cd.yml on ziglang/zig-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for ziglang-0.16.0-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl
Algorithm Hash digest
SHA256 d4bd8197344fffe276e1d6446e4ef7bc38637d821b4685fe96a936503d4b0619
MD5 684ea42837220d3fa583b740b4072828
BLAKE2b-256 fe29d281591fa0be47aefcb23ac379cdbff5b34a1fdaafa139a5f8703ca9559c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziglang-0.16.0-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl:

Publisher: cd.yml on ziglang/zig-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for ziglang-0.16.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.musllinux_1_1_s390x.whl
Algorithm Hash digest
SHA256 df0e6599e41d087c912b0d3d7cedef6c9cb1f0032465c8fc820e9986772d11e4
MD5 05f37d93714b93d6d93a64b9be4cdcc1
BLAKE2b-256 4a34e0138d89ec47da986ac08009ae8802af052c1e335163d983c074d9eaa1c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziglang-0.16.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.musllinux_1_1_s390x.whl:

Publisher: cd.yml on ziglang/zig-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for ziglang-0.16.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl
Algorithm Hash digest
SHA256 0fd671c599f6961638cc302cf1f9461486696385311d4c0276171dcf7d2b67f5
MD5 4413ee60bf011d8e4c5507f335b3b351
BLAKE2b-256 b6fc5cb1555281d2a998355ee7081f05f45d2f6a2789ca0fcb02015cfcb4b900

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziglang-0.16.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl:

Publisher: cd.yml on ziglang/zig-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for ziglang-0.16.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl
Algorithm Hash digest
SHA256 7249779f0f916cfd2d1a9d54eb7600f3901384dc8dcbe1eea226bd32a8237fb5
MD5 d04af1a8ed10272245643542067e3945
BLAKE2b-256 07e4beae76926e3070978d06fa156b243642d5f75ffd784f7cd64e783520e456

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziglang-0.16.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl:

Publisher: cd.yml on ziglang/zig-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for ziglang-0.16.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 e27d409812b11e0fb89ed0200cf2e55b6464d43f9461553104e4a4f9a94a1fd5
MD5 e59142079f69001a3e64549d04d09866
BLAKE2b-256 7eedd6663a5e52c504944d578b9e0bfcb7857f292803bcd09ebe0d10fe2b293d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziglang-0.16.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl:

Publisher: cd.yml on ziglang/zig-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for ziglang-0.16.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 9fcda73f62b851dd72a54b710ad40a209896db14cfb13649e62191243556342b
MD5 c00b72f6cfd82c8e255b7105401c2689
BLAKE2b-256 3eed7b79023aa27ceb5d461ecf761181e7c33c57bbc1a6256a39535d1c7083d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziglang-0.16.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl:

Publisher: cd.yml on ziglang/zig-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for ziglang-0.16.0-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 8b83661247430aa335b3cbc29569084900412dde5633b02c80a6d2ff734de3d2
MD5 a7d10abde95d051c3de89856d1c238c2
BLAKE2b-256 cdaa7966d158d768fb0e40bf5fef6e7ffe230dfee502382782ec39be1331ee4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziglang-0.16.0-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl:

Publisher: cd.yml on ziglang/zig-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for ziglang-0.16.0-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 18e14f6b25678d7b7c65708c82501ee6090fe39ed5c783477d56267af1fa5629
MD5 5f8d523adad666c59d42bc4987a2d0a3
BLAKE2b-256 7560f924aa24b95a1ad347e845acc7ab6b5d062ae5b0b540d494654cd40d4e0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziglang-0.16.0-py3-none-macosx_12_0_x86_64.whl:

Publisher: cd.yml on ziglang/zig-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for ziglang-0.16.0-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 b61e5413c49508d9d62e5dcea543e3af491594154d74a00ff52f84ed508260cc
MD5 aa83f564ac606f9b490c4383c80317cb
BLAKE2b-256 cd59012f0c2800f7428b87bb16c5c78db7ef806efed274491998155955c02558

See more details on using hashes here.

Provenance

The following attestation bundles were made for ziglang-0.16.0-py3-none-macosx_12_0_arm64.whl:

Publisher: cd.yml on ziglang/zig-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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