$npx skillfedfor your agent

pyleri

Python Left-Right Parser

Worth itPyPI Python ModulesReleased Jul 2026124.6K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pyleri-1.5.1-py3-none-any.whl
v1.5.1 · released 2026-07-06

Yes. Pyleri is actively maintained, has no dependencies, installs easily, carries no security vulnerabilities, and solves a real problem—defining grammars once and reusing them across languages. It's most valuable if you need consistent parsing logic in multiple codebases; for single-language parsing, a simpler tool may suffice.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with no runtime dependencies.
  • The package is actively maintained, with a recent release 39 days ago and consistent commit activity.

License · maintenance · safety

permissive license (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute the package freely in commercial and private projects.

last release 2026-07-06 (39 days) · last repo commit 2026-07-06 · 124 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 124,563 downloads/mo, #11,863 on PyPI

Verify before relying

from pyleri import Grammar, Keyword, Regex, Sequence

class MyGrammar(Grammar):
    k_hi = Keyword('hi')
    r_name = Regex('(?:"(?:[^"]*)")+')
    START = Sequence(k_hi, r_name)

my_grammar = MyGrammar()
result = my_grammar.parse('hi "Iris"')
print(result.is_valid)  # True
  • Whether the package supports Python 3.11+ despite classifiers only listing up to 3.10
  • Performance characteristics when parsing large or deeply nested grammars
  • Whether exported grammars in other languages maintain full feature parity with the Python version
Same gist for agents: .md · .json

What it is and what it does

Pyleri is a parser generator that lets you define a formal grammar as a Python class, then use it to parse and validate strings. You compose grammars from building blocks like Keywords, Regex patterns, Sequences, and Choices, then call parse() to check whether a string matches. The parser returns a result object with validation status, position, parse tree, and error expectations.

The package's main strength is cross-language export: once you define a grammar in Python, you can generate equivalent parsers in JavaScript (via jsleri), C (via libcleri), Go (via goleri), and Java (via jleri). This makes it useful for projects that need consistent parsing logic across multiple codebases—for instance, a web app with a Python backend and JavaScript frontend, or a database query language that needs to validate input in multiple services.

Use it for

  • Define a query language grammar once in Python and export it to JavaScript for browser-side validation and autocompletion
  • Validate domain-specific language (DSL) syntax in a Python application before processing
  • Build a parser for a custom configuration file format and reuse it across Python, C, and Go microservices
  • Generate error messages showing what tokens are expected at a parse failure position
  • Create a grammar for a database query language and export it to multiple client libraries

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Pyleri is actively maintained, has no dependencies, installs easily, carries no security vulnerabilities, and solves a real problem—defining grammars once and reusing them across languages. It's most valuable if you need consistent parsing logic in multiple codebases; for single-language parsing, a simpler tool may suffice.

Install

pyleri on PyPI

Before you install

Low install friction with no runtime dependencies. The package is actively maintained, with a recent release 39 days ago and consistent commit activity.

License in practice

Licensed under MIT (permissive), so you can use, modify, and distribute the package freely in commercial and private projects.

Quickstart

from pyleri import Grammar, Keyword, Regex, Sequence

class MyGrammar(Grammar):
    k_hi = Keyword('hi')
    r_name = Regex('(?:"(?:[^"]*)")+')
    START = Sequence(k_hi, r_name)

my_grammar = MyGrammar()
result = my_grammar.parse('hi "Iris"')
print(result.is_valid)  # True

Verify before relying

  • Whether the package supports Python 3.11+ despite classifiers only listing up to 3.10
  • Performance characteristics when parsing large or deeply nested grammars
  • Whether exported grammars in other languages maintain full feature parity with the Python version

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 39 days since the last release
Last repo commit
First released
Downloads124,563 / month, #11,863 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: Linguistic

Evidence: pyleri-1.5.1-py3-none-any.whl

Tags

Capabilities
parser generator pythongrammar definition languageleft-right parsercross-language grammar exportautocompletion parserquery language parsersyntax validation
Topics
parser-generatorcross-languagegrammar-definition
PyPI keywords
parsergrammarautocompletion

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “grammar definition language”

  • pyleriPyleri is a left-right parser generator that lets you define a…
  • mo-parsingmo-parsing is a PEG parser generator that lets you define grammars…
  • tree-sitter-goProvides a Go language grammar for tree-sitter, enabling incremental…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also textparser · lark-js · tree-sitter-java · mo-parsing · tree-sitter-go · tree-sitter-python · TatSu · pygmars · tree-sitter-groovy · tree-sitter-regex