Name | ziglang JSON |
Version |
0.15.1
JSON |
| download |
home_page | None |
Summary | Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software. |
upload_time | 2025-08-30 03:57:24 |
maintainer | None |
docs_url | None |
author | None |
requires_python | ~=3.5 |
license | None |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
Zig PyPI distribution
=====================
[Zig][] is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software. The [ziglang][pypi] Python package redistributes the Zig toolchain so that it can be used as a dependency of Python projects.
[zig]: https://ziglang.org/
[pypi]: https://pypi.org/project/ziglang/
Rationale
---------
Although Zig is useful in itself, the Zig toolchain includes a drop-in C and C++ compiler, [`zig cc`][zigcc], 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.
[clang]: https://clang.llvm.org/
[zigcc]: https://andrewkelley.me/post/zig-cc-powerful-drop-in-replacement-gcc-clang.html
Usage
-----
To run the Zig toolchain from the command line, use:
```shell
python -m ziglang
```
To run the Zig toolchain from a Python program, use `sys.executable` to locate the Python binary to invoke. For example:
```python
import sys, subprocess
subprocess.call([sys.executable, "-m", "ziglang"])
```
Binary wrapper
--------------
The [ziglang][pypi] Python package installs a binary wrapper for the Zig compiler under the name `python-zig`; the name is different to avoid conflicts with any system-wide or user-wide `zig` binaries that may be already installed.
Using with `uv`
---------------
The Zig compiler distributed in this Python package can be launched by [uv](https://docs.astral.sh/uv) without installation:
```shell
uvx --from ziglang python-zig
```
License
-------
The [Zig license](https://github.com/ziglang/zig#license).
Raw data
{
"_id": null,
"home_page": null,
"name": "ziglang",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.5",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": null,
"download_url": null,
"platform": null,
"description": "Zig PyPI distribution\n=====================\n\n[Zig][] is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software. The [ziglang][pypi] Python package redistributes the Zig toolchain so that it can be used as a dependency of Python projects.\n\n[zig]: https://ziglang.org/\n[pypi]: https://pypi.org/project/ziglang/\n\nRationale\n---------\n\nAlthough Zig is useful in itself, the Zig toolchain includes a drop-in C and C++ compiler, [`zig cc`][zigcc], 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.\n\n[clang]: https://clang.llvm.org/\n[zigcc]: https://andrewkelley.me/post/zig-cc-powerful-drop-in-replacement-gcc-clang.html\n\nUsage\n-----\n\nTo run the Zig toolchain from the command line, use:\n\n```shell\npython -m ziglang\n```\n\nTo run the Zig toolchain from a Python program, use `sys.executable` to locate the Python binary to invoke. For example:\n\n```python\nimport sys, subprocess\n\nsubprocess.call([sys.executable, \"-m\", \"ziglang\"])\n```\n\nBinary wrapper\n--------------\n\nThe [ziglang][pypi] Python package installs a binary wrapper for the Zig compiler under the name `python-zig`; the name is different to avoid conflicts with any system-wide or user-wide `zig` binaries that may be already installed.\n\n\nUsing with `uv`\n---------------\n\nThe Zig compiler distributed in this Python package can be launched by [uv](https://docs.astral.sh/uv) without installation:\n\n```shell\nuvx --from ziglang python-zig\n```\n\nLicense\n-------\n\nThe [Zig license](https://github.com/ziglang/zig#license).\n",
"bugtrack_url": null,
"license": null,
"summary": "Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.",
"version": "0.15.1",
"project_urls": {
"Bug Tracker": "https://github.com/ziglang/zig-pypi/issues",
"Homepage": "https://ziglang.org",
"Source Code": "https://github.com/ziglang/zig-pypi"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "284dcf640c988231f36c796f7310cf54e89866c96e63cd6599bac4bbbdcf7014",
"md5": "59dc86a42b7170856d134afda85bab17",
"sha256": "f2f92404599822152eff2ef2830632e9ebeb18e55168dddd5f68f6bfeb2c5f4d"
},
"downloads": -1,
"filename": "ziglang-0.15.1-py3-none-macosx_12_0_arm64.whl",
"has_sig": false,
"md5_digest": "59dc86a42b7170856d134afda85bab17",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.5",
"size": 93002414,
"upload_time": "2025-08-30T03:57:24",
"upload_time_iso_8601": "2025-08-30T03:57:24.477162Z",
"url": "https://files.pythonhosted.org/packages/28/4d/cf640c988231f36c796f7310cf54e89866c96e63cd6599bac4bbbdcf7014/ziglang-0.15.1-py3-none-macosx_12_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c73d4375a5c27ad3fd72d7a7ba2f013bdd9a99f9e0dae847cbfdfe56f9cb0f0b",
"md5": "45483500305998c6d1cc81a01851cca3",
"sha256": "77348af083caf1c364466b931b5e7f9608687c88670bdda77c237570096bde09"
},
"downloads": -1,
"filename": "ziglang-0.15.1-py3-none-macosx_12_0_x86_64.whl",
"has_sig": false,
"md5_digest": "45483500305998c6d1cc81a01851cca3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.5",
"size": 97045379,
"upload_time": "2025-08-30T03:57:36",
"upload_time_iso_8601": "2025-08-30T03:57:36.813269Z",
"url": "https://files.pythonhosted.org/packages/c7/3d/4375a5c27ad3fd72d7a7ba2f013bdd9a99f9e0dae847cbfdfe56f9cb0f0b/ziglang-0.15.1-py3-none-macosx_12_0_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "26dad6fd19f278745ae187ca46e907f83b4c83142f5f6c5de8f159879cc70d4b",
"md5": "fb91e03d2789d23106397b8a73e9e313",
"sha256": "129c6b9b9e428ae48a6949ea6da55239f8bd6480656df1eb0b6947f75f851fdf"
},
"downloads": -1,
"filename": "ziglang-0.15.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl",
"has_sig": false,
"md5_digest": "fb91e03d2789d23106397b8a73e9e313",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.5",
"size": 97295023,
"upload_time": "2025-08-30T03:57:48",
"upload_time_iso_8601": "2025-08-30T03:57:48.760968Z",
"url": "https://files.pythonhosted.org/packages/26/da/d6fd19f278745ae187ca46e907f83b4c83142f5f6c5de8f159879cc70d4b/ziglang-0.15.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "30a08aabb5f4e0862340ebb4d86f614567a5492e4e1ac09639c9c759404babe1",
"md5": "6e6249cf7535bf8a9f21eba73f7ae76f",
"sha256": "4e45994a0e608d9b16ecad255698f5557a2e24de0bd7ba9efb156ab3f3683d9a"
},
"downloads": -1,
"filename": "ziglang-0.15.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl",
"has_sig": false,
"md5_digest": "6e6249cf7535bf8a9f21eba73f7ae76f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.5",
"size": 93506712,
"upload_time": "2025-08-30T03:58:00",
"upload_time_iso_8601": "2025-08-30T03:58:00.996563Z",
"url": "https://files.pythonhosted.org/packages/30/a0/8aabb5f4e0862340ebb4d86f614567a5492e4e1ac09639c9c759404babe1/ziglang-0.15.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fd0bea4ac1a1242c478c7ccbf0c031c9f6f58290c5ea910490fc0b5a3772648e",
"md5": "75aba15a0fd55c01e080507b263798ea",
"sha256": "6c32697f9e165b7b6c5950ab0a1cd2e2bc3e72f4ff2d59bc5121b2b71955a77a"
},
"downloads": -1,
"filename": "ziglang-0.15.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl",
"has_sig": false,
"md5_digest": "75aba15a0fd55c01e080507b263798ea",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.5",
"size": 90536567,
"upload_time": "2025-08-30T03:58:12",
"upload_time_iso_8601": "2025-08-30T03:58:12.841679Z",
"url": "https://files.pythonhosted.org/packages/fd/0b/ea4ac1a1242c478c7ccbf0c031c9f6f58290c5ea910490fc0b5a3772648e/ziglang-0.15.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "08a289539bbe0ad375cb72b788ff11724f408f870a045c7d8dc9451066bd6526",
"md5": "dec681dbad8cbdf1a2c49594a2133eac",
"sha256": "b261fe992100fdfb3e61cdd0758335ac8514c8aa4029e3604490648c6a337466"
},
"downloads": -1,
"filename": "ziglang-0.15.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl",
"has_sig": false,
"md5_digest": "dec681dbad8cbdf1a2c49594a2133eac",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.5",
"size": 99939660,
"upload_time": "2025-08-30T03:58:27",
"upload_time_iso_8601": "2025-08-30T03:58:27.382820Z",
"url": "https://files.pythonhosted.org/packages/08/a2/89539bbe0ad375cb72b788ff11724f408f870a045c7d8dc9451066bd6526/ziglang-0.15.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cc1995c05b330c70275c79cd1964e9651d87c67876ebc70d148432748f629b95",
"md5": "41fbd3d7cc4acc6d0f6906929963ad87",
"sha256": "9118903a47bbcc747ce47b1456c552a04bb6a0e1be28275ab20bbccf8104e474"
},
"downloads": -1,
"filename": "ziglang-0.15.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.musllinux_1_1_s390x.whl",
"has_sig": false,
"md5_digest": "41fbd3d7cc4acc6d0f6906929963ad87",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.5",
"size": 99578982,
"upload_time": "2025-08-30T03:58:39",
"upload_time_iso_8601": "2025-08-30T03:58:39.312320Z",
"url": "https://files.pythonhosted.org/packages/cc/19/95c05b330c70275c79cd1964e9651d87c67876ebc70d148432748f629b95/ziglang-0.15.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.musllinux_1_1_s390x.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f010e1f17be5cdbaae6932c110b1ce3d877fbaeeb40b34a18390324219110da1",
"md5": "9d97b3fc9e5d80212f65379a4ae25821",
"sha256": "6a49c03d692e31a9a312ec45c0829bc281572196a9df52318bb0be0d05ae20ea"
},
"downloads": -1,
"filename": "ziglang-0.15.1-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl",
"has_sig": false,
"md5_digest": "9d97b3fc9e5d80212f65379a4ae25821",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.5",
"size": 94114681,
"upload_time": "2025-08-30T03:58:51",
"upload_time_iso_8601": "2025-08-30T03:58:51.877270Z",
"url": "https://files.pythonhosted.org/packages/f0/10/e1f17be5cdbaae6932c110b1ce3d877fbaeeb40b34a18390324219110da1/ziglang-0.15.1-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b69b5b11a0f78ab3475e25c0e53e240e39b2c2fcfe1e651f639834860755d7cf",
"md5": "2e28ee36fc52bdbb71ae9a88eb376097",
"sha256": "b8ba52adc1401c470707a420f2e5e199fce142436717aa822e00a93a18a9ea25"
},
"downloads": -1,
"filename": "ziglang-0.15.1-py3-none-win32.whl",
"has_sig": false,
"md5_digest": "2e28ee36fc52bdbb71ae9a88eb376097",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.5",
"size": 96132500,
"upload_time": "2025-08-30T03:59:04",
"upload_time_iso_8601": "2025-08-30T03:59:04.321673Z",
"url": "https://files.pythonhosted.org/packages/b6/9b/5b11a0f78ab3475e25c0e53e240e39b2c2fcfe1e651f639834860755d7cf/ziglang-0.15.1-py3-none-win32.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cdf37b0fb6f1f7705221694f90c4756480646c1a08f6ae94e9f567ac4d1c4d17",
"md5": "e0209682e7d23decaa6c3a4716e1f945",
"sha256": "dae4c6aef5bf9d64f6eb71ae57603e2fd0ad5e79efdd5ca3ea058fb1e738d961"
},
"downloads": -1,
"filename": "ziglang-0.15.1-py3-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "e0209682e7d23decaa6c3a4716e1f945",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.5",
"size": 94047515,
"upload_time": "2025-08-30T03:59:16",
"upload_time_iso_8601": "2025-08-30T03:59:16.618007Z",
"url": "https://files.pythonhosted.org/packages/cd/f3/7b0fb6f1f7705221694f90c4756480646c1a08f6ae94e9f567ac4d1c4d17/ziglang-0.15.1-py3-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ca0a6b15293c30f5f555f1313010855d588004db1166af51bbc697a271cc1ce2",
"md5": "1e7e07dd6d724524f1c1409d92ddcd1c",
"sha256": "5965248dd7f72769ff339a04bd8e29e13fa205758c64766ef9cc55eaafbaedb8"
},
"downloads": -1,
"filename": "ziglang-0.15.1-py3-none-win_arm64.whl",
"has_sig": false,
"md5_digest": "1e7e07dd6d724524f1c1409d92ddcd1c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.5",
"size": 89692347,
"upload_time": "2025-08-30T03:59:31",
"upload_time_iso_8601": "2025-08-30T03:59:31.195387Z",
"url": "https://files.pythonhosted.org/packages/ca/0a/6b15293c30f5f555f1313010855d588004db1166af51bbc697a271cc1ce2/ziglang-0.15.1-py3-none-win_arm64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-30 03:57:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ziglang",
"github_project": "zig-pypi",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "ziglang"
}