PyZon
a standalone python parser for the Zig Object Notation format from the Zig Programming Language.
At the moment the library only supports reading Zon file
How to use
import pyzon
with open("build.zig.zon") as fp:
pyzon.load(fp)
# {.name: .zig, .version: '0.0.0', .dependencies: {.standalone_test_cases: {.path: 'test/standalone'}, .link_test_cases: {.path: 'test/link'}}, .paths: [''], .fingerprint: 13965117641364839958}
pyzon.loads(".{1, .b, \"b\", 'c'}")
# [1, .b, 'b', 'c']
pyzon.dumps({"name": pyzon.EnumLiteral("test"), "version": "0.0.0"})
# '.{.name = .test, .version = "0.0.0"}'
Limitations
PyZon was only intended to ever parse build.zig.zon files and may not support everything expressable within a Zon file however it is also a bit more lax and can parse zon files that Zig itself will reject, for example in the case of keywords being used in literals.
If you find a zon file that does not parse correctly please open an issue to document this and give me the ability to fix it.
License
PyZon uses the MIT License
Metadata
Release files for pyzon 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyzon-0.1.2.tar.gz | 7.7 kB | Without provenance | Details for pyzon-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyzon-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pyzon-0.1.2-py3-none-any.whl |
Total release size: 13.4 kB
Release files / pyzon-0.1.2.tar.gz
| Download URL | pyzon-0.1.2.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11df1efceb5cb5932ca4beb5c93b4f26adff7517085ef544b78c9d329842bf06
|
|
BLAKE2b-256 checksum How to use checksums |
29b9cc84f377a89c065cb028463ab69da04f3d82d6096e6271740fea25cd808d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pyzon-0.1.2-py3-none-any.whl
| Download URL | pyzon-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13cbfb999aa559d55fe784cec7eba6346502cb7b1594a210cc68e1f99f5f210f
|
|
BLAKE2b-256 checksum How to use checksums |
296496c4ec5712725c3d184947d4f7a95f38ba45ef70456e023b120d61910059
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pyzon 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.