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
File details
Details for the file ziglang-0.11.0.dev.3747-py3-none-win_amd64.whl
.
File metadata
- Download URL: ziglang-0.11.0.dev.3747-py3-none-win_amd64.whl
- Upload date:
- Size: 78.1 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 078c4e5537783d793ca210e70edd1c08bed33d3378c1ec09596afc7b7ce83708 |
|
MD5 | fa1e2c71721a26e54833d0508732c525 |
|
BLAKE2b-256 | 4058970f5c5d926de27e94fabe55327db6dc4c8ba6c5a85e12888c46354e1370 |
File details
Details for the file ziglang-0.11.0.dev.3747-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
.
File metadata
- Download URL: ziglang-0.11.0.dev.3747-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
- Upload date:
- Size: 76.1 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64, musllinux: musl 1.1+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46e0f031806a142ea7357bbdf06b8f07f32212373de7fe62a166799d70788d9a |
|
MD5 | 2c70d1ec22ffbe85f9f8d8da999c0eae |
|
BLAKE2b-256 | 38dbd10aa40552e2ea7bc93e57cc366d3b53dd816474072503327f4f580ae253 |
File details
Details for the file ziglang-0.11.0.dev.3747-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: ziglang-0.11.0.dev.3747-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
- Upload date:
- Size: 78.6 MB
- Tags: Python 3, manylinux: glibc 2.12+ x86-64, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e9a96629f62be03b1df2838c9e3bba44ef8fd5cde6e9957f021bae70f77e377 |
|
MD5 | 636b9ff9b3e7c89248027f7b63fd677e |
|
BLAKE2b-256 | d94b015ac5160290be41a1e7ec4596b7779f5840c47e31dd5e9de7bf567990f7 |
File details
Details for the file ziglang-0.11.0.dev.3747-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl
.
File metadata
- Download URL: ziglang-0.11.0.dev.3747-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl
- Upload date:
- Size: 85.8 MB
- Tags: Python 3, manylinux: glibc 2.12+ i686, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f2f7e8930da3b7a7cf4e47054307ac9b1e756e7a02301ed3103cc99de8c8236 |
|
MD5 | 5d576969edaa491c08c8f94bf8a5674e |
|
BLAKE2b-256 | bd567c48145cc689681a7b73fe5e1b1038e3d56fa3800d02665cc58502816d7a |
File details
Details for the file ziglang-0.11.0.dev.3747-py3-none-macosx_11_0_arm64.whl
.
File metadata
- Download URL: ziglang-0.11.0.dev.3747-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 78.4 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a075ceaeba6e10e18dbe49a0fbba23a832e1e68526ae629462e79e06626a8b80 |
|
MD5 | 83e07353a93f1d8626a74a66e6afbad2 |
|
BLAKE2b-256 | 3c743e7a8e3405a68ca2a86da56a58149600e2945a5deae5b07ba46f17acab35 |
File details
Details for the file ziglang-0.11.0.dev.3747-py3-none-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: ziglang-0.11.0.dev.3747-py3-none-macosx_10_9_x86_64.whl
- Upload date:
- Size: 82.3 MB
- Tags: Python 3, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc032b5345ba144664eaad619fa1d08989bf2e0f9c62f68c3f54f5805c5c0b58 |
|
MD5 | 06115c3b1943d689cda1ad5a0aae5eb1 |
|
BLAKE2b-256 | 2d3b883cf7e501d7a188ee649b045af5fb623b6d66cd9cbaa00ea4813ffdf5af |