Skip to main content

Parser combinator library

Project description

Syncraft

Syncraft is a parser/generator combinator library for Python. It helps you

  • Build grammars
  • Parse SQL statement to AST
  • Search AST by grammar
  • Convert AST to dataclass
  • Check constraints over the AST/dataclass
  • Change dataclass and convert back to AST

Installation

pip

pip install syncraft

uv

uv add syncraft

Python 3.10+ is required.

With pip

pip install syncraft[dev]

With uv

uv sync --group dev 

TODO

  • debug constraint.datalog
  • debug sqlite3
  • collect terminal from syntax and build PLY lexer
  • chunker
  • unify in find

Project details


Download files

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

Source Distribution

syncraft-0.2.8.tar.gz (46.4 kB view details)

Uploaded Source

Built Distribution

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

syncraft-0.2.8-py3-none-any.whl (48.2 kB view details)

Uploaded Python 3

File details

Details for the file syncraft-0.2.8.tar.gz.

File metadata

  • Download URL: syncraft-0.2.8.tar.gz
  • Upload date:
  • Size: 46.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for syncraft-0.2.8.tar.gz
Algorithm Hash digest
SHA256 829b447e4b1f8cc508613ab886e7c87c5c1349238eabfff46debb957c798884e
MD5 a37bf3c48cceffdb42692473474fd2d6
BLAKE2b-256 7c60201cd54f1f82d3ffddab85bd814d3fad42dcf9fef32a7cab42f1906d6a9b

See more details on using hashes here.

File details

Details for the file syncraft-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: syncraft-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 48.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for syncraft-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ce796b1cafa53ce2a9af553d5608bb080f97d4449961ec40413337412ecb4a17
MD5 e0dc23ae050b22da7af0b8a928f301ba
BLAKE2b-256 5f1255050ac47dff7f4e0862c269582338b77a7b8fb8afd4ef5d8639356876b3

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