No project description provided
Project description
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:
data = pyzon.load(fp)
print(data)
# {.name: .zig, .version: '0.0.0', .dependencies: {.standalone_test_cases: {.path: 'test/standalone'}, .link_test_cases: {.path: 'test/link'}}, .paths: [''], .fingerprint: 13965117641364839958}
more_data = pyzon.loads(".{1, .b, \"b\", 'c'}")
print(more_data)
# [1, .b, 'b', 'c']
Limitations
PyZon is not perfect will likely be unable to parse some perfectly valid Zon files, if you find any please report them to me.
License
PyZon uses the MIT 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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyzon-0.1.0.tar.gz.
File metadata
- Download URL: pyzon-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37bd27a6cded45b4666d75c3fe46f33b7951a0cfddfa30f8d766656c7caa89a5
|
|
| MD5 |
85482f890988258570cd7274e2da87b6
|
|
| BLAKE2b-256 |
a732988b3954116cbea229e3fe114d09b9cd528a4b074a8b9c99feec7316d075
|
File details
Details for the file pyzon-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyzon-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b11576ed6064d210ab2f1c16eb959b38d39df8eda2e0dc3c5b1f2e8bed53a76
|
|
| MD5 |
61948e0c3d3b3b95a015c1fdf4a14233
|
|
| BLAKE2b-256 |
6c435cc2a5c39846a00e97f9e003a40de83ab4e71f4af86eef79f617db02fb97
|