a native cpython extension to parse zig object notation strings
Project description
Python Zig Zon Parser
A native python extension built with zig to parse zig-object-notation strings into python objects.
On PyPi it is only distributed in source, and built during install.
It therefore needs to download the ziglang python package.
Usage
install:
python3 -m pip install zig-zon
running:
import zig_zon
parsed = zig_zon.parse('.{.allyourcode = .are_belong_to_us, .asd = 123}')
print(parsed)
or, look at the test
Developing
as opposed to other solutions, i want to develop using:
zig build test
so this command runs a python script that imports and uses the module
using the system python interpreter found in PATH. When the module is built using pip,
zig will get a -Dpython= option pointing to the right executable,
as well as a -Dversion= option for the pip package version.
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
File details
Details for the file zig_zon-0.0.4.tar.gz.
File metadata
- Download URL: zig_zon-0.0.4.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f6227ef3a0d99da7cdaf4c4ec1b4010e5b0d84b6c0cec79e7fea7c8538a0303
|
|
| MD5 |
3494a8a737c0775a6f23f4baaffada19
|
|
| BLAKE2b-256 |
a5ae9ded335bff5ae798d59cd66f604d2bc96aaa3140ac2b0a8b201ce17522fb
|