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.8.1-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 222b643152ef9398cbc01948937582628878d2eabdfad45c81ad624bca8b1ef5 |
|
MD5 | 1a1389be6a986f525878876ff0348afc |
|
BLAKE2b-256 | cb58657bd200ceb8e4fce43ab905a9feac210e74a010e7c98080d657af09c3f8 |
Hashes for ziglang-0.8.1-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be37993dd0a36f9aebcf43ded310599bd68bd15c8cbda35eed0a338566f74108 |
|
MD5 | bd1cfc83646441c1cdb8ecec1f66a7f1 |
|
BLAKE2b-256 | 26858528d2d77eda9e662b2bad97ea7419e0eaccba0aa2dd4da0db9553909003 |
Hashes for ziglang-0.8.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d77c54000577075e963105746e3dc95e2a76848f3ded109e7f790d90fbef93bb |
|
MD5 | c43b80c431969207857571248e8c77f0 |
|
BLAKE2b-256 | 2df1b51786a969280f640382d7720180baf096aca23386728ebef35fbe6340a8 |
Hashes for ziglang-0.8.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c9c875282b53cfb3fb444578a421f4eb941cf3ecb976b7ea038c8981776bacc |
|
MD5 | ecfe60222986e93b2c7993512bf15d9f |
|
BLAKE2b-256 | 6c9123f532ffd20de748bc0abf4c0b844d0ed7a4b069cd2bcf53c2f015671768 |
Hashes for ziglang-0.8.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe6660b61df1b4ea091f240c5988f90854cd34cec8f1e388c61ddfb4a258ff33 |
|
MD5 | bf5737b7fa476db8d80dfe9833f534a4 |
|
BLAKE2b-256 | 9d35dbf6264a649c37ab341f834b0b217e63f7637f3fce5e79f8bbc5bb62d7dc |
Hashes for ziglang-0.8.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7bbfff3ed2d69f7f80efbf3922e7b66643a350cbee7e10ede5803e575a39f6f |
|
MD5 | 098539cfd6bc969180a6d0f0869c322c |
|
BLAKE2b-256 | 9619d6385278cf328a651596de419f28be427e38ddd37f781a3a6be9b099cdf6 |
Hashes for ziglang-0.8.1-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23cb31c5dc576b9be780892ab622f964671876522138dddb71779a2d168fc15f |
|
MD5 | 4f1ea47d313c232331fd521dbe494904 |
|
BLAKE2b-256 | 26adf09798c6da1fdf2f1abd0add54fc33ba6398ff3cd0648e9de3388f187f80 |
Hashes for ziglang-0.8.1-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75fcfc3420d5c8e5f357c825012e257e3291cbf7cbba1d36b71234b11a2cc6ea |
|
MD5 | de0ff4b0b12f2c5ef96821716b615110 |
|
BLAKE2b-256 | bd07952e9b938fb4722c80d886b0f154cca4cd24230abaf96b210a2b00de219f |