Skip to main content

Plugin which integrates Lark into the Poetry build system.

Project description

poetry-lark

Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity. This plugin integrates Lark into the Poetry build system and provides several commands for configuring standalone parsers using pyproject.toml and Poetry.

Install

$ poetry self add poetry-lark

The plugin depends only on Lark and Poetry, but you can use Lark's extra features: interegular (if it is installed, Lark uses it to check for collisions, and warn about any conflicts that it can find) and regex (if you want to use the regex module instead of the re module).

Usage

$ poetry lark-add <module> <grammar-file>
$ poetry lark-remove <module>
$ poetry lark-build <module>

By default, the plugin is integrated into the Poetry build system and generates all parser modules specified in the pyproject.toml (if auto-build option is not configured as false for parser module).

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

poetry_lark-1.0.3.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

poetry_lark-1.0.3-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file poetry_lark-1.0.3.tar.gz.

File metadata

  • Download URL: poetry_lark-1.0.3.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for poetry_lark-1.0.3.tar.gz
Algorithm Hash digest
SHA256 1f32c18d63abaee99f249fd170a2f5f9c6ae284540d6d5a5fef0346437888b04
MD5 db3137caa233de78a4c8ec38f93a3ada
BLAKE2b-256 88bf745b1f30d1840ad225f3ca0935e90516dbf899578f4bc761bd08456cd926

See more details on using hashes here.

File details

Details for the file poetry_lark-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: poetry_lark-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for poetry_lark-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a9d10f5db3dfd917ea3277277e25b6afe9bb00b616ba178df1b50c1dfe37b805
MD5 6098f03ca3a07fffc1dc0a722e493ecb
BLAKE2b-256 7c1220be13854df6f960a99323b5dab802461790cc2ef127a92226ff225e9285

See more details on using hashes here.

Supported by

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