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.9.tar.gz (46.5 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.9-py3-none-any.whl (48.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: syncraft-0.2.9.tar.gz
  • Upload date:
  • Size: 46.5 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.9.tar.gz
Algorithm Hash digest
SHA256 116cea8405da358adb8293f7cfe434ef4fd468c3217d27b579f3cd3edbef8e98
MD5 68103ed67e8957aeee8faf0e34803fea
BLAKE2b-256 bceddf9471550e59e51597d4b0f72075df9582ce667633ea9e3a2fbfa3cbe2a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: syncraft-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 48.3 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 052be80a6b9b998e38de85d31e677918440caccd7e6da08d3a614958b92e8aaa
MD5 9ac4a196937257748db65aead5a3c0de
BLAKE2b-256 0dd6faeb7758c4d657c458532d990180bfbac7924c4bfc59e4af8656fa5b7f1c

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