Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ziglang-0.12.1-py3-none-win_amd64.whl (77.7 MB view details)

Uploaded Python 3Windows x86-64

ziglang-0.12.1-py3-none-win32.whl (82.3 MB view details)

Uploaded Python 3Windows x86

ziglang-0.12.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl (76.4 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARMv7lmusllinux: musl 1.1+ ARMv7l

ziglang-0.12.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl (75.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64musllinux: musl 1.1+ ARM64

ziglang-0.12.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl (78.2 MB view details)

Uploaded Python 3manylinux: glibc 2.12+ x86-64musllinux: musl 1.1+ x86-64

ziglang-0.12.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl (85.7 MB view details)

Uploaded Python 3manylinux: glibc 2.12+ i686musllinux: musl 1.1+ i686

ziglang-0.12.1-py3-none-macosx_12_0_x86_64.whl (81.2 MB view details)

Uploaded Python 3macOS 12.0+ x86-64

ziglang-0.12.1-py3-none-macosx_12_0_arm64.whl (78.7 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

File details

Details for the file ziglang-0.12.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: ziglang-0.12.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 77.7 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for ziglang-0.12.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c5344e28e9ce4a48949f140c2bb6457e10107dfed27da8af7611f7640bc50177
MD5 c4aa39f00a279fb459e06d940c6bb577
BLAKE2b-256 9d6300558cded5202f5648a8bf13da4857060d0d231080b4ea34fdb25406b7b9

See more details on using hashes here.

File details

Details for the file ziglang-0.12.1-py3-none-win32.whl.

File metadata

  • Download URL: ziglang-0.12.1-py3-none-win32.whl
  • Upload date:
  • Size: 82.3 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for ziglang-0.12.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 0489dfbc6186f528fd7a18c713d13303bcc62f0a281e469599ba5645ecbf4ac0
MD5 b79a39af58f96717cc83d44ecc9412b7
BLAKE2b-256 f83841530e821a92856cc7b247caa5d209356416a5e417d1c314c18baa7b6f8e

See more details on using hashes here.

File details

Details for the file ziglang-0.12.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file ziglang-0.12.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file ziglang-0.12.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file ziglang-0.12.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file ziglang-0.12.1-py3-none-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for ziglang-0.12.1-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 5164d25349441c890b8cf928317a533e3338e3603285c394001ea12ba6af7687
MD5 abeea38b1e500ddbb67b2d86337e24e9
BLAKE2b-256 c48a5b168d21f2e83c83bc6c712d68cd11d1affdc50a185416a6810e90f3e1dc

See more details on using hashes here.

File details

Details for the file ziglang-0.12.1-py3-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for ziglang-0.12.1-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 e166297bc3fa4e8f7e4f8ca4fdd3e20fc6821a27fd3b6ca04268654a5003a8ba
MD5 aaf68973cd88296237d54211cea255f8
BLAKE2b-256 6ecf755ab2dae976e87ec85dc49684786dd156c441a87b2002f2d3d253889775

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page