Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hitori-1.0.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

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

Hashes for hitori-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da42adddf1696070e8e5647d66fc3e9f8e12de52ce5ebdab37ece4b924ad2e03
MD5 4c36fe0f90330c1db44f169bac866873
BLAKE2b-256 a39ead89071ac8497eeca0f5a829622183fc48048008d8eaff4eb310c0fdd1d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page