astatine
Some handy helper functions for Python's AST module.
Decision gist · record as of 2026-08-14
Yes, if you're writing tools that parse or manipulate Python code and need to support multiple Python versions. The low install friction, permissive license, active maintenance, and zero known vulnerabilities make it a safe choice. Not worth installing if you only target a single Python version or don't work with the ast module.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later; the package is designed to smooth over AST differences across supported Python versions.
- Low friction: pure Python wheel with only two runtime dependencies (asttokens and domdf-python-tools).
- Actively maintained as of 2026-04-07, though last release was 2023-08-15.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute astatine freely in commercial and open-source projects with minimal restrictions.
last release 2023-08-15 (1095 days) · last repo commit 2026-04-07
0 known vulnerabilities (OSV.dev, 2026-08-14) · 104,665 downloads/mo, #12,740 on PyPI
Alternatives
Verify before relying
pip install astatine
import astatine
# Use astatine's helper functions for AST manipulation
# (specific functions depend on the version's API)- What specific AST helper functions are provided and their typical use patterns
- How the package handles AST differences between Python 3.6 and 3.11
- Performance characteristics when processing large syntax trees
What it is and what it does
Astatine is a utility library that wraps Python's built-in ast module with helper functions to work around version inconsistencies. The ast module itself has changed between Python releases, making it difficult to write code that works reliably across versions; astatine abstracts those differences away. It depends on asttokens and domdf-python-tools to provide its functionality.
The package is in Beta status and actively maintained. It supports Python 3.6 through 3.11 on both CPython and PyPy, and is distributed as a pure Python wheel with no compiled dependencies. It's typed (includes type hints) and has no known security vulnerabilities.
Use it for
- Normalize AST handling across different Python versions in a code analysis or transformation tool
- Build linters or code quality checkers that need consistent AST access across Python 3.6–3.11
- Simplify AST-based code generation or refactoring scripts by using stable helper functions
- Develop Python parsing libraries that need to support multiple Python versions without version-specific branching
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you're writing tools that parse or manipulate Python code and need to support multiple Python versions.
The low install friction, permissive license, active maintenance, and zero known vulnerabilities make it a safe choice. Not worth installing if you only target a single Python version or don't work with the ast module.
Install
astatine on PyPI
Before you install
Low friction: pure Python wheel with only two runtime dependencies (asttokens and domdf-python-tools). Actively maintained as of 2026-04-07, though last release was 2023-08-15.
Requires Python 3.6 or later; the package is designed to smooth over AST differences across supported Python versions.
License in practice
MIT license (permissive) means you can use, modify, and distribute astatine freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install astatine
import astatine
# Use astatine's helper functions for AST manipulation
# (specific functions depend on the version's API)
Verify before relying
- What specific AST helper functions are provided and their typical use patterns
- How the package handles AST differences between Python 3.6 and 3.11
- Performance characteristics when processing large syntax trees
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesasttokensdomdf-python-tools |
| Maintenance | Actively maintained 1,095 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 104,665 / month, #12,740 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: astatine-0.3.3-py3-none-any.whl
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 › “ast module helpers”
- astatineAstatine provides helper functions and utilities for working with…
- flake8-plugin-utilsProvides base classes and utilities for writing flake8 plugins,…
- gastProvides a unified Abstract Syntax Tree representation that works…
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 ast-comments · astroid · typed-ast · ast-grep-cli · domdf-python-tools · enum-tools · ast-decompiler · openqasm3 · gast · asttokens