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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file poetry_lark-1.0.2.tar.gz
.
File metadata
- Download URL: poetry_lark-1.0.2.tar.gz
- Upload date:
- Size: 7.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d2ba40a112b814c497ad00870c543a4ccffbb803f00d6a6f6340c466e03b630 |
|
MD5 | 6c62eeb99f0a4f4a8a8ac4b1dd2c9131 |
|
BLAKE2b-256 | 791758e84847a4d17eca99dd9c75da2b36b73164f7c617126aba4fad13c2b83e |
File details
Details for the file poetry_lark-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: poetry_lark-1.0.2-py3-none-any.whl
- Upload date:
- Size: 9.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2ce1f27fa2ee18bf41598252e11eab215b8090171e491c819b43b92b4afd33a |
|
MD5 | 78e42a54b5d5c7819435115c785fc9f9 |
|
BLAKE2b-256 | 4871e559a66a93836c1d88bd0d3d127c93b329ab44c8daa54ccceba76ae675aa |