Parsing and serializing Sakura Expressions
Project description
hitori
a Python library for Sakura Expressions
This library also supports parsing in fragments. The input can be given piece by piece to the library before the final result is returned.
Installation
The package can be installed via the PyPI:
pip install hitori
Usage
You can find a documentation of the API here: https://hannesbraun.net/share/doc/hitori
Here is a small example:
import hitori
root = parse("(foo bar baz)")
print(root[0][0]) # prints "foo"
serialized = hitori.serialize(root)
print(serialized) # prints "(foo bar baz)"
License
hitori is published under the terms of the Blue Oak Model 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 Distributions
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 hitori-1.0.0-py3-none-any.whl.
File metadata
- Download URL: hitori-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da42adddf1696070e8e5647d66fc3e9f8e12de52ce5ebdab37ece4b924ad2e03
|
|
| MD5 |
4c36fe0f90330c1db44f169bac866873
|
|
| BLAKE2b-256 |
a39ead89071ac8497eeca0f5a829622183fc48048008d8eaff4eb310c0fdd1d5
|