$npx skillfedfor your agent

textX

Meta-language for DSL implementation inspired by Xtext

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

Decision gist · record as of 2026-08-14

pure-Python wheel — textx-4.4.0-py3-none-any.whl
v4.4.0 · released 2026-07-08 · Python >=3.8 · 2 runtime deps: Arpeggio, importlib-metadata

Yes. textX is actively maintained, has no known vulnerabilities, low install friction, and is well-suited for anyone building a textual DSL in Python. The framework is production-stable (Development Status 5), has been in development since 2014, and is appropriate for research, commercial, and open-source use under the MIT license.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8 or later; Arpeggio must be installed as a runtime dependency.
  • Low install friction with only two runtime dependencies (Arpeggio and importlib-metadata).
  • The package is actively maintained with a recent release and no known vulnerabilities.

License · maintenance · safety

permissive license (permissive) — MIT license permits commercial and private use with minimal restrictions, making it suitable for both open-source and proprietary projects.

last release 2026-07-08 (37 days) · last repo commit 2026-08-02 · 852 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 299,747 downloads/mo, #7,853 on PyPI

Verify before relying

from textx import metamodel_from_str

grammar = """Model: items*=Item; Item: 'item' name=ID;"""
mm = metamodel_from_str(grammar)
model = mm.model_from_str("item foo item bar")
  • Whether textX's PEG parser approach handles all grammar patterns needed for your specific DSL use case
  • Performance characteristics when parsing large or deeply nested models
Same gist for agents: .md · .json

What it is and what it does

textX is a Python framework for implementing Domain-Specific Languages by writing a grammar definition. From that grammar, it automatically generates a parser and meta-model (abstract syntax tree) that can parse and instantiate models conforming to your language. It uses a PEG parser (via Arpeggio) with unlimited lookahead and no grammar ambiguities, following the design principles of Xtext but implemented entirely in Python.

You define your DSL syntax as a textX grammar, optionally provide custom Python classes for specific rules, and then use the generated meta-model to parse text into Python object graphs. This is useful when you need to build support for a new textual language, file format, or configuration syntax without writing a parser from scratch.

Use it for

  • Build a custom configuration file format with validation and programmatic access to parsed settings
  • Create a domain-specific language for modeling (e.g., state machines, workflows, or diagrams) and interpret or transform the models
  • Parse and process existing textual file formats or languages where you want programmatic control over the abstract syntax
  • Implement a code generation tool that reads a textual specification and produces output in another language
  • Define a query or expression language for a specialized application domain

Worth the install?

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

Worth it

Yes.

textX is actively maintained, has no known vulnerabilities, low install friction, and is well-suited for anyone building a textual DSL in Python. The framework is production-stable (Development Status 5), has been in development since 2014, and is appropriate for research, commercial, and open-source use under the MIT license.

Install

textx on PyPI

Before you install

Low install friction with only two runtime dependencies (Arpeggio and importlib-metadata). The package is actively maintained with a recent release and no known vulnerabilities.

Requires Python 3.8 or later; Arpeggio must be installed as a runtime dependency.

License in practice

MIT license permits commercial and private use with minimal restrictions, making it suitable for both open-source and proprietary projects.

Quickstart

from textx import metamodel_from_str

grammar = """Model: items*=Item; Item: 'item' name=ID;"""
mm = metamodel_from_str(grammar)
model = mm.model_from_str("item foo item bar")

Verify before relying

  • Whether textX's PEG parser approach handles all grammar patterns needed for your specific DSL use case
  • Performance characteristics when parsing large or deeply nested models

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
Arpeggioimportlib-metadata
MaintenanceActively maintained 37 days since the last release
Last repo commit
First released
Downloads299,747 / month, #7,853 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 :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: CompilersTopic :: Software Development :: InterpretersTopic :: Software Development :: Libraries :: Python Modules

Evidence: textx-4.4.0-py3-none-any.whl

Tags

Capabilities
DSL parser generatordomain-specific language frameworkgrammar-based parser pythonmeta-language implementationtextual language parserxtext alternative pythonPEG parser DSL builder
Topics
dsl-frameworkparser-generatorlanguage-implementation
PyPI keywords
parsermeta-languagemeta-modellanguageDSL

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 › “domain-specific language framework”

  • textXtextX is a meta-language for building Domain-Specific Languages…
  • bddlBDDL is a domain-specific language for defining household activity…
  • zope.configurationZope.configuration provides an extensible configuration system based…

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 pyPEG2 · TatSu · Arpeggio · parsimonious · ply · textparser · mo-parsing · Parsley · pygmars · graphql-query