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.12.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 044136e276e80dfdc7cfaada80efe8679d0ba9f8abf911f8c68afa44ca259148 |
|
MD5 | f28cbe8cc48d22e804e986177536f97c |
|
BLAKE2b-256 | 7db02423736bc6b4ea349fc728def7511d50c515337365ffc38bb26545e48a50 |
Hashes for ziglang-0.12.0-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9373c68cf654d69f46411eff2fd48cb8495b8d9bcd6e88b65783ef8ab4bfe4ae |
|
MD5 | 56331c22d4a5edf3602d26aa67abe500 |
|
BLAKE2b-256 | 2d9171fb859fda765194a2307ca17ce75cc0cbbc4c976a8dd7676f95d5f7db97 |
Hashes for ziglang-0.12.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccec405a443016647c47edcd48faf15be9d3add21c2c13bc77217b8fe87a1508 |
|
MD5 | 6b2c01de1ed1099e4e2e0809f8619d1c |
|
BLAKE2b-256 | 23ac7791c3152a6a8e121716eda8e4994fcf1c7457ddc2cbbb63a1400e6f9b51 |
Hashes for ziglang-0.12.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8da631bfb5e49390f0551a4412111c8a14671fd7f151e1adcc420317b02efcf6 |
|
MD5 | edbadba2396e0af6e8928278d5d37031 |
|
BLAKE2b-256 | 2514bb2edc6e40367898663cf5da925c2e3c5690dac7c3b695af413b7d3c39e7 |
Hashes for ziglang-0.12.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c777f1d5d9be32d0edffc79956d03ed35f868a8db7b0552da0984182aa10ff0 |
|
MD5 | 1c34d51a76fadafe6037b2c992c10081 |
|
BLAKE2b-256 | 8a162a63a86a91ec7804dbcb9d2a7ea4bc2bc22f2ebbc8379b63521d1f893a29 |
Hashes for ziglang-0.12.0-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cb9e6938ec8cddba124ebf2dcaf950e19b5b807eaa18cb976c569e6edef5ae3 |
|
MD5 | 51fd9e9bc23df55961092e754db9ed9f |
|
BLAKE2b-256 | fb78f8b50fe4275d3bffe6b0fc34261005fceda80042914dd771f26bc722e3ba |
Hashes for ziglang-0.12.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f9291fd98c4e1ece04285ddf019b9999b2e81fb4f785b550b6d91b1e1699bc9 |
|
MD5 | 605bb35925b8de0454e5287ffe1cae2c |
|
BLAKE2b-256 | 91230b12f933d227963c715a105fe9396575514f990315d7c20cfa8750860889 |
Hashes for ziglang-0.12.0-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6d1053f0e1d486cdf374f33b7ed00d99040d03f45eed5122a7522b0b7a75946 |
|
MD5 | f527eb0724b1979c7042c65227bcfd2d |
|
BLAKE2b-256 | 53b8c28b3abdb9f2578abdc8ec45a95194f5401541c89f1ab20adffcc5b3bdd5 |