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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for ziglang-0.10.0.post1-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c29a875f10164c57f6b0cbc1fbf1b0a45a6694cf34b7e0b8de18d89864d0662b |
|
MD5 | 50664b19b12cbb467b770c9797145fce |
|
BLAKE2b-256 | 475886174a9fa68f1c802502db84238486192e94600aaba27d077921670fe024 |
Hashes for ziglang-0.10.0.post1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f0263acc26cc7c6e36284afb057bede504fa92751b55bfeacbb2f1180f8c053 |
|
MD5 | 76c1d000c4d5e8dcf9bd44dca94dd90c |
|
BLAKE2b-256 | 1cd926f74814e121df55e3c6a686be97876838ab437343d7e9a548e164c2967c |
Hashes for ziglang-0.10.0.post1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e571d8083d28f28ed62cce674deeda3f46426ea85f2162806cc8e930409a73f |
|
MD5 | 67dfb9950c4fcf9fd046f90ed312538a |
|
BLAKE2b-256 | e61df4bf8a7c5d6d168d00e5143f23dab7037540b7cc2ba370c7bc3c506cda6c |
Hashes for ziglang-0.10.0.post1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1439d1b8001adaf5bc4a4764762763c29b09546be400d916bee1d8b4dcdb12f |
|
MD5 | 5a61929870f6f78b66743350ca3d2e13 |
|
BLAKE2b-256 | 02c1aa8458f28b7704049ac1bb7839395217239a369a8f65f8152ef1d9baabd9 |
Hashes for ziglang-0.10.0.post1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bacc50301eaf9612a4694ea5c2dca7df090a05f5a251a824deced201189e5f8 |
|
MD5 | c298ad21786f47998fed40f89dc6fb0c |
|
BLAKE2b-256 | 08f96ccedd8967094dfedfd8379c5046f1dba1f45bfae79680a997ddb4e235fc |
Hashes for ziglang-0.10.0.post1-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d95f0aad480e6ae42c33e1c19c8a07dee62124c28b3c8f18d7c6b1e48d0b10c |
|
MD5 | b9b5cc679c9face5408f275790525f4a |
|
BLAKE2b-256 | 38a1d25687cbdf3a933a6853ad3096931aef598ecdfdde69b8b0ab5f0f27f346 |
Hashes for ziglang-0.10.0.post1-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd80fbee04e0d8dc62f0e8db65f93fac6e49a54f2fa7e2ed2cb6869823aadb7d |
|
MD5 | ef4478cfffab5e5ba4fea16c4ae49ed0 |
|
BLAKE2b-256 | 541e0d4fcbe55e813f8c93d089135c492f21f6af879fa7e24eabdb91553e993c |