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"])

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

ziglang-0.13.0.post1-py3-none-win_amd64.whl (80.5 MB view details)

Uploaded Python 3 Windows x86-64

ziglang-0.13.0.post1-py3-none-win32.whl (84.7 MB view details)

Uploaded Python 3 Windows x86

ziglang-0.13.0.post1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl (85.9 MB view details)

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

ziglang-0.13.0.post1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl (78.8 MB view details)

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

ziglang-0.13.0.post1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl (77.9 MB view details)

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

ziglang-0.13.0.post1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl (80.9 MB view details)

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

ziglang-0.13.0.post1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl (88.3 MB view details)

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

ziglang-0.13.0.post1-py3-none-macosx_12_0_x86_64.whl (84.0 MB view details)

Uploaded Python 3 macOS 12.0+ x86-64

ziglang-0.13.0.post1-py3-none-macosx_12_0_arm64.whl (81.3 MB view details)

Uploaded Python 3 macOS 12.0+ ARM64

File details

Details for the file ziglang-0.13.0.post1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for ziglang-0.13.0.post1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1d938a984838e3cfa62775e249b1ddc9fdad66ccf456ea3e3c80473ed0928820
MD5 9bac27b795413bcee5fcb4fbc980d4dc
BLAKE2b-256 972c20e5244ddebf28367323a78a2f693cf2f6c07b4a646702d6a53e52732f5d

See more details on using hashes here.

File details

Details for the file ziglang-0.13.0.post1-py3-none-win32.whl.

File metadata

File hashes

Hashes for ziglang-0.13.0.post1-py3-none-win32.whl
Algorithm Hash digest
SHA256 9c64076971ccfba2357717f63fad540a8626f7f341c20904af3a9bbab84c5cc7
MD5 eaf4c86f0a96ba89d2c0efbb58c37dce
BLAKE2b-256 0823d74f90ccba8755c55dfde7f2f6c723ec656fdf7a7b1e8644c0a78b1d468e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ziglang-0.13.0.post1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl
Algorithm Hash digest
SHA256 2ed92c065d841fdda7a5156f5dd039e929b7a38c96d74bc95a0f3d1859a34546
MD5 3447271259af686444cac5904b917462
BLAKE2b-256 f229f74a054d8e05b5a11bb026b42b302dbed5015c549fd53a1836e75097ce83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ziglang-0.13.0.post1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl
Algorithm Hash digest
SHA256 bb05b1c3bc6c09bcd221a2d658c7651cdb501653a28b7e5db540f3975d02e392
MD5 31069bf830d0fac3ff368bef542f214d
BLAKE2b-256 cb3196adfbf19993754dc384db9e9596125289e2cfb7c46d4ab38f4b858df4fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ziglang-0.13.0.post1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 b2ab883f27e915bc34266ff6627f565b5cc7b3c566b5a91f633b4174d52119a9
MD5 55488b65107833ac9ac76f5b2a0ad13a
BLAKE2b-256 49a37b0998dee834ef22c6c72c4e3c5c4d7dde06a990acf10ab2db5f59d1d31c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ziglang-0.13.0.post1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 5ff0f2cb0d583b4f94820909612043f62e4d1d9a8bed77ceec088a01fc2ef015
MD5 7da2e5864085769becd079cffabeb9fa
BLAKE2b-256 e11588cd364004181c9db4e4b295df2184edbaed1433226cb315c2e058c00c4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ziglang-0.13.0.post1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 a9541dbffc62ab4bceda7ff13cecaed26653b37f80dccb3a02f1d80521216fcd
MD5 37b0ffd159e682fc65480ee72191f3a0
BLAKE2b-256 b4e53580fbe03e1f73446c5035958c7fc9ca86d1a3d0ddb9059fc09678ac20e4

See more details on using hashes here.

File details

Details for the file ziglang-0.13.0.post1-py3-none-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for ziglang-0.13.0.post1-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 302c3878920e7e7a9325eeee7255f6191dfd18d1065a004a40c9040350926b4a
MD5 ac2071ab8e07e5ef591a0c68460226c1
BLAKE2b-256 86c962550e901adef96a907f6e3f4e63d0458207a177dee5b0d0261fef6aa4c6

See more details on using hashes here.

File details

Details for the file ziglang-0.13.0.post1-py3-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for ziglang-0.13.0.post1-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 081143c208494c35fe9c683573ecccdacf9b3af6c3d9cf9452138b4ef8ef0901
MD5 28905713dd59ced9ca9b50ec236e2226
BLAKE2b-256 7fa97f3066db62ef80ab9adf79ddf4f0d3b3d4003099bdb0afe3fbbad7b2495d

See more details on using hashes here.

Supported by

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