On this page
parsethon
Prev: immunity | Up: projects | Next: gitwriter
Rel: wispsy, Tooling & Runtimes
Ref: wispsy on GitHub
Tags: #public #wispsy #project #tooling #tier/specialized
Role
Extensible Python 3.14+ lexical parser (ParsethonTokenizer) and bidirectional "Tongue" translation system—expressing Python in alternate syntactic vocabularies (es, emoji, js, pirate, or custom Tongue definitions) while executing directly under CPython (0.3.0).
Install
uv add parsethon
# or: pip install parsethon
Quickstart
parsethon list-tongues
parsethon run examples/fibonacci.es.py
import parsethon
from parsethon import translate_to_python
py_code = translate_to_python("definir f(x):\n retornar x + 1\n", "es")
parsethon.enable() # enables transparent .<tongue>.py module imports
When to Reach for It
- Experimenting with alternative Python syntaxes, custom DSLs, or localized keywords while keeping full CPython runtime and stdlib compatibility.
Gotchas & Pitfalls
- Experimental (
0.3.0, Python>=3.14): Alternate "Tongue" vocabularies (es,emoji,js,pirate, or customTongue) translate at the lexical/token level before CPython execution. - Keyword collision vigilance: When authoring a custom
Tongue, ensure every mapped keyword is unique and does not collide with identifier names used in your target scripts. - Tooling compatibility: Standard linters and formatters expect canonical Python syntax—translate back to canonical Python before running third-party static analysis.
Pairs With
- expose-interface — Powers the
parsethonCLI (sole runtime dependency). - echidnae — Shares interest in structured Python/JavaScript translation.
Metadata
type: project-card
slug: parsethon
org: wispsy
repo: wispsy/parsethon
package: parsethon
version: 0.3.0
requires_python: ">=3.14"
layer: tooling
topic: wispsy-tooling
status: experimental
language: python
source_docs: README.md, docs/
Linked from
Related notes
- wiki/projects/gitwriter Linked here; links to this page; shared tags: #project, #tier, #tooling, #wispsy
- wiki/projects/immunity Linked here; links to this page; shared tags: #project, #tier, #tooling, #wispsy
- wiki/stack/tooling Linked here; links to this page; shared tags: #tier, #tooling, #wispsy
- wiki/projects Linked here; links to this page; shared tags: #wispsy
- wiki/projects/echidnae Linked here; shared tags: #project, #tier, #tooling, #wispsy
- wiki/projects/expose-interface Linked here; shared tags: #project, #tier, #wispsy
- wiki/compatibility links to this page; shared tags: #tier, #wispsy
- wiki/orgs/wispsy Linked here; shared tags: #tier, #wispsy
- tuts/third_party/python3/wispsy links to this page; shared tags: #tier
- wiki/projects/evok shared tags: #project, #tier, #tooling, #wispsy