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.9.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc92c37d2c6b04fbb5b2fe6fa3c15c4108499f54cc968a98d55ab86af7883abc |
|
MD5 | 44296eb9446d2a0a2192ca9376932dc9 |
|
BLAKE2b-256 | edbec69f5257e16da1fb3c3f0771393a3b7e8a2d53679085040e18f06f18c32f |
Hashes for ziglang-0.9.0-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b25cc5c6d560a3c895d0d1ad34b4a25f223fb0f18ae620110a03a0df7dbf239 |
|
MD5 | 8b639b9bc66dc6e28c51c7ce246f62bd |
|
BLAKE2b-256 | 91d8081da17caf4a2dbde1274182efd16528582ced1c8e8b6f13a8d89851e7e0 |
Hashes for ziglang-0.9.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | feb5d753e723313e53e05c2064f31a694394d95040610a61cbdad393bd305296 |
|
MD5 | 5e1d5f7a822a26a586d644cb98d6712e |
|
BLAKE2b-256 | fb20e1a5eaa8446cdfbdeb73c8bc3dcc28a8f3ea43795fa103530f6c0a90bc5e |
Hashes for ziglang-0.9.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76ee2bf69ac94625015fc9ddf6db76359dc6da9dc3b681e6ae02a543d4313c84 |
|
MD5 | b88faae6aa4cf7e21490688ae0ca3bcd |
|
BLAKE2b-256 | 82deb66563f27798636cc338a63cfd7215f0e1f4cbc585cd8f3bb3dea2a8a4a3 |
Hashes for ziglang-0.9.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb7596089af3cf40c8311695c1bb3fca8bec97edb75e0d2d66312f95a31ddd8b |
|
MD5 | ea191ab708e5e4e0a60a5a93eeb66a48 |
|
BLAKE2b-256 | e2da5c0a0d04cc2c467ddda8799a9f628481bf9f28cd2dc482f536a48e9f0870 |
Hashes for ziglang-0.9.0-py3-none-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eb48172e15a74341e1242cfd1e1c523ddb29b3fa82b548a914a4d25358988e8 |
|
MD5 | ce28df360dbdb9957546832e34c05a82 |
|
BLAKE2b-256 | a2e7f3617e1a988b4dbfeccb5adcb442826089db73252f593bad2abbb998f27f |
Hashes for ziglang-0.9.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fe65d06cd83b0b78b8c9fb405f49ca0af9087fc50300d4c7c5ed4d8ca4135ff |
|
MD5 | 29a001d506a787bfcc5c7b87f3916aeb |
|
BLAKE2b-256 | 7edff08e57c0ef01edc92cd3aead3eee41f32369b1ea052c4a52ddc72493d947 |
Hashes for ziglang-0.9.0-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc9d0e2fa03f4ac15246d0e90f8339c184bb00650959ea2a8abc62bee3e6a6ea |
|
MD5 | f97ad144881312ff20465b7005b49b3d |
|
BLAKE2b-256 | 02afd10d9c2f4424cad8549b175264329f6426b7081261f98f0cce5f657ca24e |