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.1-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf039d83321ae9957c3688021b9975c60171ffc8ba2b89046fdb08e0d43ddbdb |
|
MD5 | ecaa6163176fe59b0f0781d09b8eced8 |
|
BLAKE2b-256 | 7d1281c55be109aa4964b1d89ddccb654a8c3114aef1e8310d6e7a726448a24f |
Hashes for ziglang-0.9.1-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f58f62e0adffe1adcc150d43490e0141496e469d4c5461611cebe56558b95e77 |
|
MD5 | 5433da80b1e4d4dba90d5efb2bb7027a |
|
BLAKE2b-256 | 34413aad5658b24968daf4c8ae5fc116bc1ffba23752d5aa8549d58e165594d3 |
Hashes for ziglang-0.9.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3517b877e9026840dcaee2df4478980389e792881e81fb026f65e57c69a02f23 |
|
MD5 | e1ac93959fe7747aea9003aa2799af5a |
|
BLAKE2b-256 | 7c133e9a9b2248bd087cd072ae61095ecfc6f6b81417696421b20ed1f7903752 |
Hashes for ziglang-0.9.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fee74a60826fd41a623d535c7a9e6130207e320aede0a9d25b9e5b948e5fe3e |
|
MD5 | b518075395f793a2cf66af651b53fc5c |
|
BLAKE2b-256 | ce0bcc36a7d33cb65d68888475a5f9a74302f87c967b83bf4371f95ac10924ff |
Hashes for ziglang-0.9.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa1d08040e2b9a7aab40b0c14e1baf52097e845ea7a6801462ec593f48cf3431 |
|
MD5 | 353abf5d8a8c14b613be6dbe27cb8cc4 |
|
BLAKE2b-256 | 280572143368b26ad910e36ba61bd3db3fee3b1c624071fc2a29dcae02fc4a80 |
Hashes for ziglang-0.9.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 819e8e48504d5b6c1a0b2d9e20c714f13c7f27ec982fa2c5adea62935ab17310 |
|
MD5 | 21d6a5d9279dda9ff8151015dfabc404 |
|
BLAKE2b-256 | ddcf18a7ca29301d82ede28bae5ce82fec332b06e54e3a9661140f468229f639 |
Hashes for ziglang-0.9.1-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a308fa651484a8660e315a53fd7d5c7e8d0b3c4ca3f591f60dab727b1a7bb34 |
|
MD5 | 4b4166af1c092a848479ef410f670fa9 |
|
BLAKE2b-256 | 9393a12d25387f2e4668b9a8d2ca53f0f63c155cb4342d43502c789691095ad2 |
Hashes for ziglang-0.9.1-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fedce198fdaace4e8abb89c1a77e25023bb79dec8c30b54e7658dec3f01e9b62 |
|
MD5 | db235c0f2d97e490ec74e89351327491 |
|
BLAKE2b-256 | 5c0cb05a0d1dc110b4b09cb887f59668e37029a2fe316aca69f53d7c728c1551 |