$npx skillfedfor your agent

lark-parser

a modern parsing library

Worth itPyPI Python ModulesReleased Aug 20213.7M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — lark_parser-0.12.0-py2.py3-none-any.whl
v0.12.0 · released 2021-08-30

Yes. Lark is production-stable, dependency-free, actively maintained, and widely used (top 5000 PyPI packages). Choose it if you need to parse structured text or implement a language. The main caveat: the latest release is from 2021-08-30, so verify current Python version compatibility before adopting in new projects.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installation is straightforward with no runtime dependencies.
  • The package is actively maintained with recent commits and has been stable since its first release in 2017-02-11.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

last release 2021-08-30 (1810 days) · last repo commit 2026-08-13 · 5,958 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,665,702 downloads/mo, #2,535 on PyPI

Verify before relying

pip install lark-parser

from lark import Lark

grammar = r"""
    start: "hello" name
    name: /\w+/
"""
parser = Lark(grammar)
tree = parser.parse("hello world")
  • Whether the package receives active maintenance updates beyond the 2021-08-30 latest release date
  • Current compatibility with modern Python versions given the last release predates recent Python releases
Same gist for agents: .md · .json

What it is and what it does

Lark is a general-purpose parsing library that transforms grammar definitions into working parsers. It supports three parsing algorithms—Earley (handles all context-free grammars including ambiguous ones), LALR(1) (fast and compact), and CYK (for highly ambiguous grammars)—and automatically builds parse trees from input text based on your grammar structure.

The library is designed for minimal boilerplate: you write a grammar in EBNF notation and Lark generates a parser that can immediately process text matching that grammar. It includes conveniences like automatic line and column tracking, a standard library of common terminals (strings, numbers, identifiers), and Unicode support. With no runtime dependencies and support for both Python 2 and 3, it's straightforward to integrate into existing projects.

Use it for

  • Parse domain-specific languages or configuration file formats by defining their grammar rules
  • Build compilers or interpreters that need to convert source code into abstract syntax trees
  • Extract structured data from text by defining patterns as a context-free grammar
  • Implement query languages or expression parsers for applications requiring user-defined syntax
  • Generate stand-alone parsers from LALR grammars for deployment without the library

Worth the install?

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

Worth it

Yes.

Lark is production-stable, dependency-free, actively maintained, and widely used (top 5000 PyPI packages). Choose it if you need to parse structured text or implement a language. The main caveat: the latest release is from 2021-08-30, so verify current Python version compatibility before adopting in new projects.

Install

lark-parser on PyPI

Before you install

Installation is straightforward with no runtime dependencies. The package is actively maintained with recent commits and has been stable since its first release in 2017-02-11.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install lark-parser

from lark import Lark

grammar = r"""
    start: "hello" name
    name: /\w+/
"""
parser = Lark(grammar)
tree = parser.parse("hello world")

Verify before relying

  • Whether the package receives active maintenance updates beyond the 2021-08-30 latest release date
  • Current compatibility with modern Python versions given the last release predates recent Python releases

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 1,810 days since the last release
Last repo commit
First released
Downloads3,665,702 / month, #2,535 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 LicenseProgramming Language :: Python :: 2.7Programming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: GeneralTopic :: Text Processing :: Linguistic

Evidence: lark_parser-0.12.0-py2.py3-none-any.whl

Tags

Capabilities
context-free grammar parserast parser libraryearley lalr parserparsing library pythongrammar-based parsingsyntax tree generatorgeneral-purpose parser
Topics
parser-generatordslcompiler-tools
PyPI keywords
EarleyLALRparserparsingast

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 › “earley lalr parser”

  • lark-parserLark is a parsing library that builds abstract syntax trees from…
  • larkLark is a parsing library that builds abstract syntax trees from…
  • spark-parserImplements an Earley algorithm parser for context-free grammars with…

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 lark · lark-js · pycep-parser · spark-parser · textparser · ply · bc-python-hcl2 · rfc3987-syntax · sly · tree-sitter-python