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-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79401b92155cad8d9481005c7c6d470539d600278da4022af62ac603913d4513 |
|
MD5 | a3b3162a5ff10d06139d367e5a2d0380 |
|
BLAKE2b-256 | 0f38c751fd1154de0ff17739393954e26025457aef1ebb6b0dc42ed31398e892 |
Hashes for ziglang-0.10.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 674b0a718b8ac04e6ef73cc20c9634f2007f48e847eee4e2e937f028668bad1a |
|
MD5 | dafadf5f87971a351463680a72724580 |
|
BLAKE2b-256 | dc071f0840528447b124aeec45e17c555b31ede905f3955cd4899521a3e5a272 |
Hashes for ziglang-0.10.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8da27e3d09c0cf625d6849c6db1350aa7bb32370541575b995adc073ebefecfd |
|
MD5 | 07aacd33457459f1e54b4c9d0f9a3ee5 |
|
BLAKE2b-256 | ad9ea430eadfe13329dd83d74781e4b754c250a2792348945febc448936aebdd |
Hashes for ziglang-0.10.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02f565269421e6d0fb71634144752df62de852402508a06d292960388d7db462 |
|
MD5 | 8286f348cdc7999d464f34f46ef153e7 |
|
BLAKE2b-256 | abe22a7757ee44f6741b2c95e8b0519ee6a50282e5f8e3bc2d30ff5dc80a865e |
Hashes for ziglang-0.10.0-py3-none-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cb3b68c2d1a52dbc2c28d43d4a576bf36f35be7885e79a67b48a9bbaa65918e |
|
MD5 | b72b81bcdd724dc9a3fea31156c0fcdd |
|
BLAKE2b-256 | 31246cf3f28c06b2ebab7e94d94f23a1555eb08ae69f442252c0ff9e47b0dc02 |
Hashes for ziglang-0.10.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eed6ccc5ef58c5dada492aa07fff5e730311778dca2a863fc5ef0e5a167738e |
|
MD5 | 2082517cd5ac714ecabd942c90bc0036 |
|
BLAKE2b-256 | 8034799a4c5cd34e4c26ab9db855bc567207cdd5c85bf3d19f9e55676153b888 |
Hashes for ziglang-0.10.0-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcd9dadfcb9b8b147fd05e9aaeca1f06927cbd2f2036672738c232ce59453394 |
|
MD5 | 4dea0d1c8754e9de7967969d9c062da6 |
|
BLAKE2b-256 | b4d50602a1582b9df9d6e24da130ec541d4a45818b8d598213cbdc352b246881 |