asttokens
PyPIv3.0.2Annotate AST trees with source code positions
Overview
asttokens is an PyPI package that annotate AST trees with source code positions. The latest version is 3.0.2, released under the Apache 2.0 license.
Who should use it
Teams working in the PyPI ecosystem who need annotate AST trees with source code positions and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your PyPI stack.
Pros
- Clear open-source license (Apache 2.0).
- Zero runtime dependencies — minimal footprint.
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of asttokens.
Used by
Popular packages that depend on asttokens.
Frequently installed together
Version history
| Version | Published | License |
|---|---|---|
| 3.0.2latest | 7 days ago | Apache 2.0 |
| 3.0.1 | 8 months ago | Apache 2.0 |
| 3.0.0 | 1 year ago | Apache 2.0 |
| 2.4.1 | 2 years ago | Apache 2.0 |
| 2.4.0 | 2 years ago | Apache 2.0 |
| 2.3.0 | 2 years ago | Apache 2.0 |
| 2.2.1 | 3 years ago | Apache 2.0 |
| 2.2.0 | 3 years ago | Apache 2.0 |
| 2.1.0 | 3 years ago | Apache 2.0 |
| 2.0.8 | 3 years ago | Apache 2.0 |
| 2.0.7 | 4 years ago | Apache 2.0 |
| 2.0.6 | 4 years ago | Apache 2.0 |
| 2.0.5 | 5 years ago | Apache 2.0 |
| 2.0.4 | 6 years ago | Apache 2.0 |
| 2.0.3 | 6 years ago | Apache 2.0 |
| 2.0.2 | 6 years ago | Apache 2.0 |
| 2.0.1 | 6 years ago | Apache 2.0 |
| 2.0.0 | 6 years ago | Apache 2.0 |
| 1.1.15 | 6 years ago | Apache 2.0 |
| 1.1.14 | 6 years ago | Apache 2.0 |
Maintainers
Frequently asked questions
How do I install asttokens?
Run `pip install asttokens` to add asttokens to your PyPI project.
What license is asttokens released under?
asttokens is distributed under the Apache 2.0 license.
How popular is asttokens?
asttokens has approximately 0 downloads per week and 1 known dependent packages.