esprima
ECMAScript parsing infrastructure for multipurpose analysis in Python
Decision gist · record as of 2026-08-14
No. The package is abandoned with no maintenance since 2018 and untested on modern Python versions. If you need JavaScript parsing in Python, prefer an actively maintained alternative. Install only if you are maintaining legacy code that already depends on esprima and cannot migrate.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Classifiers indicate Python 2.7 and Python 3.3–3.6 support; compatibility with modern Python versions (3.8+) is unspecified and untested.
- Installation requires a source build (high friction).
- The package is abandoned—last release was 2018-08-24 and last commit 2023-03-01—so expect no maintenance or security updates going forward.
License · maintenance · safety
BSD License (permissive) — BSD License (permissive) allows commercial and private use with minimal restrictions, though you should retain license notices in derivative works.
last release 2018-08-24 (2912 days) · last repo commit 2023-03-01 · 267 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 484,449 downloads/mo, #6,403 on PyPI
Alternatives
Verify before relying
pip install esprima
import esprima
program = 'const answer = 42'
tokens = esprima.tokenize(program)
ast = esprima.parseScript(program)- Whether the package works reliably on Python versions newer than 3.6, given no recent maintenance.
- Whether JSX support is production-ready or experimental only.
- Current state of the Python port relative to the original JavaScript Esprima—feature parity and bug-fix status.
What it is and what it does
Esprima is a Python port of the original JavaScript ECMAScript parser, providing both tokenization (lexical analysis) and parsing (syntactic analysis) to generate abstract syntax trees conforming to the ESTree standard. It supports ECMAScript 2017 and includes experimental JSX support. The parser can optionally track node locations in the source code.
The package has no runtime dependencies and is a pure Python implementation. However, it is abandoned—the last release was in August 2018 and the last repository commit in March 2023—meaning no new features, bug fixes, or security updates will be issued. It was originally designed for Python 2.7 and Python 3.3–3.6, and its behavior on modern Python versions is untested.
Use it for
- Build static analysis tools that inspect JavaScript code structure without executing it.
- Generate code transformations or refactoring scripts by manipulating the parsed AST.
- Implement linters or style checkers that need to understand JavaScript syntax.
- Extract metadata from JavaScript files (e.g., function names, variable declarations).
- Transpile or analyze React JSX syntax (experimental support).
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned with no maintenance since 2018 and untested on modern Python versions. If you need JavaScript parsing in Python, prefer an actively maintained alternative. Install only if you are maintaining legacy code that already depends on esprima and cannot migrate.
Install
esprima on PyPI
Before you install
Installation requires a source build (high friction). The package is abandoned—last release was 2018-08-24 and last commit 2023-03-01—so expect no maintenance or security updates going forward.
Classifiers indicate Python 2.7 and Python 3.3–3.6 support; compatibility with modern Python versions (3.8+) is unspecified and untested.
License in practice
BSD License (permissive) allows commercial and private use with minimal restrictions, though you should retain license notices in derivative works.
Quickstart
pip install esprima
import esprima
program = 'const answer = 42'
tokens = esprima.tokenize(program)
ast = esprima.parseScript(program)
Verify before relying
- Whether the package works reliably on Python versions newer than 3.6, given no recent maintenance.
- Whether JSX support is production-ready or experimental only.
- Current state of the Python port relative to the original JavaScript Esprima—feature parity and bug-fix status.
Package facts
| License | BSD License permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,912 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 484,449 / month, #6,403 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: Software Development :: Code GeneratorsTopic :: Software Development :: CompilersTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: General |
Evidence: esprima-4.0.1.tar.gz
Tags
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 › “javascript parser python”
- esprimaEsprima parses ECMAScript (JavaScript) source code into an abstract…
- lark-jsLark-js is a command-line tool that generates standalone LALR(1)…
- pyjsparserParses JavaScript source code into an abstract syntax tree (AST)…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
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.
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.
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.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
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…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also esprima2 · pyjsparser · tree-sitter-javascript · Js2Py-3.13 · Js2Py · tree-sitter-typescript · quickjs-rs · regress · luaparser · gast