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.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 141a839b8fa08d1cdacf9af7329e5abdd8c0799a3171039f9950db48713b997c |
|
MD5 | 41c2c37ac3cbb030b7a9a0b4ddaf7444 |
|
BLAKE2b-256 | 19652ceba761382bdfa96daaac40ae760438c930bc1c387116c31ba1a843dd84 |
Hashes for ziglang-0.8.0-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 736e6359b324fd974e69417909f6ffef5d397c4c677c5801705df05d80b89378 |
|
MD5 | 7945ec4fbfafc85b2b48f2c731d46174 |
|
BLAKE2b-256 | d46e13c918b55f3e4447fa976aa2767f4346f89b564a49000721dfdf9d949f52 |
Hashes for ziglang-0.8.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0528deb7757712ee3bd0da2a1b7844f15a7601f9d51de82b228e447937036860 |
|
MD5 | ecee77afe810d2f759933ce4432d4327 |
|
BLAKE2b-256 | 91b525f833c31f53edee8a51a9a47f93db84699393b8613decd2c2c6378f5f4f |
Hashes for ziglang-0.8.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea9149816a0eb2f19ccc1870ddbcb135c916cc1992fd0202f7e7dfc94537f37e |
|
MD5 | d49779f67190358e9df8b7763e08bea2 |
|
BLAKE2b-256 | 5bb22faa9fbdc0bc36d6e87d38e4cb2ca04ce8b7347053c514a658687bb31df8 |
Hashes for ziglang-0.8.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56ae870b4de70668858e589eafef5f55f4d16919e8568cc07e1dfcbdc0b87d81 |
|
MD5 | f005647aa06170552651e000982dd8a2 |
|
BLAKE2b-256 | d9e0d61a8171610ac4869b29233e51eb4d6b9ea1e274789fd84903ecd6e3525e |
Hashes for ziglang-0.8.0-py3-none-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d114bf446892fb70cd61792cb879049eb1e3c0daa493986051817733545222e |
|
MD5 | 10c643278e2346199ec43be40146dbfb |
|
BLAKE2b-256 | 1cb516954a798d6c450fb15d966d81786369dd6c35d817491ab15f8403d5fa5c |
Hashes for ziglang-0.8.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54733f62cdb0bdcdb747f83df6628ae33257829255cdde327ce2421877f68dd0 |
|
MD5 | b385f646f9fec18cab52c3ead23e1734 |
|
BLAKE2b-256 | a95c23895282436b646171b9e4b309dc084b216c5523a1091a25357659f7437a |
Hashes for ziglang-0.8.0-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48acd3dfbda04bdb7ee308ce3ae725564593bae00970ad6a3491bad5ae90989e |
|
MD5 | 1dadb888f6632740468b175481c06349 |
|
BLAKE2b-256 | 8d019131fe512cab044d33d818ef1a0d54f0524eb132bc89f397115bd91f9a9d |