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.13.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b64b2aa936ebbfeecfbb2611df331a5474edebe1246b98c2f56d6ae4d58b71fc |
|
MD5 | c77d11ca76b0eca2e7f9fe5f4cd6bfa8 |
|
BLAKE2b-256 | e00c66f4710aedf5544e15779ff9c6e770322986e15daf9299b1a4df0be19e09 |
Hashes for ziglang-0.13.0-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36e797eebe1c75e978fb14c4ca5a42f9350cdda1850c173c036573bc480e37e8 |
|
MD5 | 02e81d45c5c0da04dfe7a3b6b9b5a1bf |
|
BLAKE2b-256 | 28e21501b497dbdd10300a47729466a30cb78dc11dae952ff01588426947f9cf |
Hashes for ziglang-0.13.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64458dbe4f8c09ae3f99897d5bf2ac343be5366079dce383e286832f17747e94 |
|
MD5 | c6ee2c6f3322f99dad78fdb56495170f |
|
BLAKE2b-256 | 3ba4dab4ddb824033b369db78235aeaa5b92f710ec01bf1e255edcb9730097a3 |
Hashes for ziglang-0.13.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5714a4d46f9246ba6180a0930e23df2bc8bc26e62b5fe0dc798b4afca1903308 |
|
MD5 | e169cae6db6ff61f257d1b19e189127e |
|
BLAKE2b-256 | b8d9d5e808cbfa20d6b566c27f3445fea30b5ec86d7b45dad237fdc7a8754f53 |
Hashes for ziglang-0.13.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ce0c9f16547e5d61b32e0d226926e9a2552ef4b91fccf7ab5ea1a623a77824b |
|
MD5 | 74303ce9624b07ddbdbd463a4fb92ac0 |
|
BLAKE2b-256 | 0cb7ecfdce6368cc3664d301f7f52db4fe1004aa7da7a12c4a9bf1de534ff6ab |
Hashes for ziglang-0.13.0-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7feb1b8cd09e17a24a2218e5b4a1ff7463390cf653e9dbaf54d5f2e4c55c3e5 |
|
MD5 | 301130aeea7a8bec890f76a9cad0deda |
|
BLAKE2b-256 | d062dbd21b026cbe8f5299f8c2d5e9f5963557d3ca928389c7187738726fab5b |
Hashes for ziglang-0.13.0-py3-none-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1b00173b8a5bfbaccb255240b8c091bd523c13743178bc248355ec6484fced7 |
|
MD5 | f0fc5caad7d618b1bf869b17cd987796 |
|
BLAKE2b-256 | 4b384f2ef2b1d727d7317b08ef309e52d8c90089272b57d5d940c74524cc4315 |
Hashes for ziglang-0.13.0-py3-none-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5408ad3a6cb342fb4e4e2351a3725adfcae82eaadebe85fdbbdad9c0ac8b1e24 |
|
MD5 | 614370d802a4ca1309ede2aec96dcbf4 |
|
BLAKE2b-256 | e6143587387c715175ed5bb103c94c0df554fabac5bc97de153e9eec2fa905aa |