$npx skillfedfor your agent

google-pasta

pasta is an AST-based Python refactoring library

SkipPyPI Software DevelopmentReleased Mar 202030.2M downloads / moApache 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — google_pasta-0.2.0-py2-none-any.whl · google_pasta-0.2.0-py3-none-any.whl
v0.2.0 · released 2020-03-13 · 1 runtime deps: six

No. The package is abandoned (last release 2020-03-13, repository archived) with no active maintenance or security updates. While it has low install friction and permissive licensing, its pre-alpha status, known limitations, and lack of ongoing support make it unsuitable for production use. Consider it only for legacy projects already depending on it or for experimental tooling where abandonment is acceptable.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires the Python version running pasta to match the version of the code being parsed, since pasta relies on ast.parse and does not handle cross-version syntax differences.
  • Low install friction with a single lightweight dependency (six).
  • However, the package is abandoned—last release was 2020-03-13 and the repository is archived.

License · maintenance · safety

Apache 2.0 (permissive) — Licensed under Apache 2.0 (permissive). You may use, modify, and distribute the package freely in commercial and private projects, provided you include the license notice.

last release 2020-03-13 (2345 days) · last repo commit 2025-03-26 · 360 stars · archived

0 known vulnerabilities (OSV.dev, 2026-08-14) · 30,193,723 downloads/mo, #805 on PyPI

Verify before relying

import pasta

tree = pasta.parse(source_code)
# Modify tree as needed
source_code = pasta.dump(tree)
  • Whether the archived codebase remains compatible with Python versions beyond 3.8.
  • Whether existing refactoring use cases still work reliably without active maintenance.
  • Whether the symmetry guarantee (pasta.dump(pasta.parse(src)) == src) holds for all modern Python syntax.
Same gist for agents: .md · .json

What it is and what it does

google-pasta is an AST-based Python refactoring library that parses source code into an abstract syntax tree, allows you to modify it programmatically, and regenerates the source code with your changes applied. Its core design goal is symmetry: parsing and dumping the same code should produce identical output, preserving all original formatting and structure. It depends only on six and installs with low friction.

The package includes built-in augmentations for common refactoring tasks—primarily renaming imported names, modules, or packages throughout a codebase. It is designed for use cases like moving or renaming Python modules, enforcing coding style through AST modifications, and safely migrating code from one API to another. However, it has known limitations: it cannot change indentation levels, assumes the Python version running pasta matches the code being parsed, and does not fully support all Python features.

Use it for

  • Rename imported names, modules, or packages and update all references throughout a codebase.
  • Migrate code from one API to another by modifying the AST and regenerating source.
  • Enforce coding style by programmatically restructuring function definitions and other AST nodes.
  • Build custom refactoring tools that modify Python source while preserving original formatting.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No.

The package is abandoned (last release 2020-03-13, repository archived) with no active maintenance or security updates. While it has low install friction and permissive licensing, its pre-alpha status, known limitations, and lack of ongoing support make it unsuitable for production use. Consider it only for legacy projects already depending on it or for experimental tooling where abandonment is acceptable.

Install

google-pasta on PyPI

Before you install

Low install friction with a single lightweight dependency (six). However, the package is abandoned—last release was 2020-03-13 and the repository is archived. No active maintenance or security updates should be expected.

Requires the Python version running pasta to match the version of the code being parsed, since pasta relies on ast.parse and does not handle cross-version syntax differences.

License in practice

Licensed under Apache 2.0 (permissive). You may use, modify, and distribute the package freely in commercial and private projects, provided you include the license notice.

Quickstart

import pasta

tree = pasta.parse(source_code)
# Modify tree as needed
source_code = pasta.dump(tree)

Verify before relying

  • Whether the archived codebase remains compatible with Python versions beyond 3.8.
  • Whether existing refactoring use cases still work reliably without active maintenance.
  • Whether the symmetry guarantee (pasta.dump(pasta.parse(src)) == src) holds for all modern Python syntax.

Package facts

LicenseApache 2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
six
MaintenanceAbandoned 2,345 days since the last release
Last repo commit repository archived
First released
Downloads30,193,723 / month, #805 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 2 - Pre-AlphaLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8

Evidence: google_pasta-0.2.0-py2-none-any.whl; google_pasta-0.2.0-py3-none-any.whl

Tags

Capabilities
python ast refactoringsource code transformationimport rewritingast-based code modificationpython code migrationpreserve formatting astrename imports python
Topics
ast-manipulationcode-refactoringabandoned
PyPI keywords
pythonrefactoringast

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-based code modification”

  • google-pastaParse Python source code into an AST, modify it, and regenerate the…
  • ast-grep-cliast-grep-cli is a command-line tool for searching, linting, and…
  • banditBandit scans Python code to identify common security issues by…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also ast-decompiler · openrewrite · pyccolo · astunparse · reorder-python-imports · tokenize-rt · pyupgrade · rope · asttokens · astpretty