skillfed

astatine

Some handy helper functions for Python's AST module.

astatine v0.3.3 104.7K downloads/30d#12,740 on PyPI0
Permissive license MIT Active released

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

Astatine provides helper functions and utilities for working with Python's AST (Abstract Syntax Tree) module, abstracting away version inconsistencies across Python releases.

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

pip

pip install astatine

uv

uv add astatine

poetry

poetry add astatine

Installing astatine

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.

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)

Requires Python 3.6 or later; the package is designed to smooth over AST differences across supported Python versions.

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 — asttokens, domdf-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)

Evidence: astatine-0.3.3-py3-none-any.whl

Keywords: ast

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

Tags

ast module helperspython abstract syntax tree utilitiesast compatibility layerpython code parsing helpersast version compatibilitypython syntax tree toolsast wrapper functions
ast-utilitiespython-compatibility

More Python Modules packages