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.1-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5344e28e9ce4a48949f140c2bb6457e10107dfed27da8af7611f7640bc50177 |
|
MD5 | c4aa39f00a279fb459e06d940c6bb577 |
|
BLAKE2b-256 | 9d6300558cded5202f5648a8bf13da4857060d0d231080b4ea34fdb25406b7b9 |
Hashes for ziglang-0.12.1-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0489dfbc6186f528fd7a18c713d13303bcc62f0a281e469599ba5645ecbf4ac0 |
|
MD5 | b79a39af58f96717cc83d44ecc9412b7 |
|
BLAKE2b-256 | f83841530e821a92856cc7b247caa5d209356416a5e417d1c314c18baa7b6f8e |
Hashes for ziglang-0.12.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 011717479951d820e9a0fe0b61b9132560f4094861fca54d66595b66f8aee23a |
|
MD5 | 130406c604e1c48ff1fc09e50a4d0365 |
|
BLAKE2b-256 | 33ff870ec09ced4953e9c64131d5e1a16d4f086768f6033e6916594ee0b94bbc |
Hashes for ziglang-0.12.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 945ea8ac157373e8437b377f7eac39f16fe63cd21b2b27fb4e518466e1cd561d |
|
MD5 | 7bf3609686ba39637a14a53cedff5940 |
|
BLAKE2b-256 | 8ef7f29b79b60dfe53d0c541c12211cfb74c9e4064b93c4ca9788ca18fc39b66 |
Hashes for ziglang-0.12.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcde948140b9e5776c2295b9b808fb4950df7ecadaecb54623dd701502be2017 |
|
MD5 | ab09b4425f66c995e1b56392d7193859 |
|
BLAKE2b-256 | ba139f4f45a6e6467fdc7e952043fc3e1449d185bcc3d4095b4b01d45241c0f9 |
Hashes for ziglang-0.12.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66fbb91889d7cfca5a9e3820e07cbbaa6ffbeadb1402b2db3cd7702b5fe43372 |
|
MD5 | cc18f27fd5ec86a3d938258536c6dc33 |
|
BLAKE2b-256 | 5e638e64f3a525a9e48dbd4ae430fe44846b64e8b897216b8884673c3bcc0353 |
Hashes for ziglang-0.12.1-py3-none-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5164d25349441c890b8cf928317a533e3338e3603285c394001ea12ba6af7687 |
|
MD5 | abeea38b1e500ddbb67b2d86337e24e9 |
|
BLAKE2b-256 | c48a5b168d21f2e83c83bc6c712d68cd11d1affdc50a185416a6810e90f3e1dc |
Hashes for ziglang-0.12.1-py3-none-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e166297bc3fa4e8f7e4f8ca4fdd3e20fc6821a27fd3b6ca04268654a5003a8ba |
|
MD5 | aaf68973cd88296237d54211cea255f8 |
|
BLAKE2b-256 | 6ecf755ab2dae976e87ec85dc49684786dd156c441a87b2002f2d3d253889775 |