asttokens
PyPIv3.0.2Annotate AST trees with source code positions
Safe to adopt
Yes — asttokens scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 60 days ago. 3 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 60 days ago. 3 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 28 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
Apache 2.0 — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding asttokens to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Python
- python >=3.8
Used by
Popular packages that depend on asttokens.
Relationship graph
Dependencies (left) and dependents (right) of asttokens.
Frequently installed together
Release history
2 releases in the last two years, typically about 52 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.0.2latest | 2 months ago | 28 KB | Apache 2.0 |
| 3.0.1 | 9 months ago | 26 KB | Apache 2.0 |
| 3.0.0 | 1 year ago | 26 KB | Apache 2.0 |
| 2.4.1 | 2 years ago | 27 KB | Apache 2.0 |
| 2.4.0 | 3 years ago | 27 KB | Apache 2.0 |
| 2.3.0 | 3 years ago | 27 KB | Apache 2.0 |
| 2.2.1 | 3 years ago | 26 KB | Apache 2.0 |
| 2.2.0 | 3 years ago | 26 KB | Apache 2.0 |
| 2.1.0 | 3 years ago | 26 KB | Apache 2.0 |
| 2.0.8 | 4 years ago | 23 KB | Apache 2.0 |
| 2.0.7 | 4 years ago | 23 KB | Apache 2.0 |
| 2.0.6 | 4 years ago | 23 KB | Apache 2.0 |
| 2.0.5 | 5 years ago | 20 KB | Apache 2.0 |
| 2.0.4 | 6 years ago | 20 KB | Apache 2.0 |
| 2.0.3 | 6 years ago | 20 KB | Apache 2.0 |
Overview
asttokens is an PyPI package that annotate AST trees with source code positions. It has 1 known dependents in the graph. 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 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 significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use asttokens?
Yes — asttokens scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 60 days ago. 3 releases in the last 2 years.
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?
PyPI does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on asttokens.
Is asttokens still maintained?
The most recent release of asttokens (v3.0.2) was published 2 months ago.