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)
  • 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.4.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: poetry_lark-1.0.4.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Linux/6.8.0-1020-azure

File hashes

Hashes for poetry_lark-1.0.4.tar.gz
Algorithm Hash digest
SHA256 9f246ca2d510a5245c1a26294577358a5f20891e63503e025214259d20a22fa4
MD5 8ee1cd1339193c5f36f1c3daa69d37f0
BLAKE2b-256 afe5bd1032aae597cdd236b250b1ac951186be318d89e80d5b2f01d67a090ccb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: poetry_lark-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Linux/6.8.0-1020-azure

File hashes

Hashes for poetry_lark-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3d112149d023563d70a0cdb1c48b3c00c6342e8cd10135d44d1923c52443e167
MD5 14a0f4fc12c246154275e7039f05451e
BLAKE2b-256 3799936ed542c9a569df2bc85b0a6e9a04ad653d30bbf45b3a08f5852986c7ce

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