$npx skillfedfor your agent

ast-serialize

Python bindings for mypy AST serialization

With conditionsPyPI Software DevelopmentReleased Aug 202682.2M downloads / moMITPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — ast_serialize-0.8.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl · ast_serialize-0.8.0-cp314-cp314t-macosx_10_12_x86_64.whl · ast_serialize-0.8.0-cp314-cp314t-macosx_11_0_arm64.whl
v0.8.0 · released 2026-08-07 · Python >=3.7

Yes, if you are contributing to mypy or building tools that depend on mypy's AST serialization format. No, if you need a general-purpose Python parser—use the stdlib ast module or Ruff directly. The package is actively maintained but remains in alpha; expect breaking changes and incomplete feature coverage.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.7+; free-threaded builds need Python 3.13t or 3.14t; primarily designed for mypy integration, not standalone use.
  • Medium install friction due to compiled wheels for multiple Python versions and architectures.
  • Active maintenance with a release 7 days ago.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most projects.

last release 2026-08-07 (7 days) · last repo commit 2026-08-12 · 9 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 82,214,499 downloads/mo, #407 on PyPI

Verify before relying

pip install ast-serialize

import ast_serialize
# Requires mypy repository checkout for full integration testing
# See mypy's new-parser branch for usage examples
  • Whether the package is stable enough for production use outside mypy's own test suite, given its 'work in progress' status.
  • Performance benchmarks comparing this parser to the stdlib ast module on typical codebases.
  • Compatibility guarantees for the serialized binary format across versions.
Same gist for agents: .md · .json

What it is and what it does

ast_serialize is a Rust-based Python parser and AST serializer designed as a replacement for mypy's internal parser. It wraps the Ruff parser and outputs AST data in mypy's native binary format rather than Python's standard ast module objects. The package is actively maintained but explicitly marked as work in progress, intended primarily for integration into mypy's type-checking pipeline.

The package has no runtime dependencies and ships as compiled wheels for Python 3.9 through 3.15, including free-threaded variants for Python 3.13t and 3.14t. It is tightly coupled to mypy's development and testing infrastructure; standalone use outside that context is not the primary design goal.

Use it for

  • Accelerating mypy's parsing phase by replacing the stdlib ast module with a faster Rust implementation.
  • Testing mypy's new parser integration via the NativeParser test suite in mypy's repository.
  • Developing type checkers or analysis tools that need to work with mypy's serialized AST format.
  • Contributing parser improvements to mypy by iterating on the Rust codebase before upstreaming.

Worth the install?

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

With conditions

Yes, if you are contributing to mypy or building tools that depend on mypy's AST serialization format.

No, if you need a general-purpose Python parser—use the stdlib ast module or Ruff directly. The package is actively maintained but remains in alpha; expect breaking changes and incomplete feature coverage.

Install

ast-serialize on PyPI

Before you install

Medium install friction due to compiled wheels for multiple Python versions and architectures. Active maintenance with a release 7 days ago. No runtime dependencies simplifies deployment.

Requires Python 3.7+; free-threaded builds need Python 3.13t or 3.14t; primarily designed for mypy integration, not standalone use.

License in practice

MIT license permits commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install ast-serialize

import ast_serialize
# Requires mypy repository checkout for full integration testing
# See mypy's new-parser branch for usage examples

Verify before relying

  • Whether the package is stable enough for production use outside mypy's own test suite, given its 'work in progress' status.
  • Performance benchmarks comparing this parser to the stdlib ast module on typical codebases.
  • Compatibility guarantees for the serialized binary format across versions.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.7
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 7 days since the last release
Last repo commit
First released
Downloads82,214,499 / month, #407 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaEnvironment :: ConsoleIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.9Programming Language :: RustTopic :: Software DevelopmentTyping :: Typed

Evidence: ast_serialize-0.8.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl; ast_serialize-0.8.0-cp314-cp314t-macosx_10_12_x86_64.whl; ast_serialize-0.8.0-cp314-cp314t-macosx_11_0_arm64.whl; ast_serialize-0.8.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; ast_serialize-0.8.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; ast_serialize-0.8.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; ast_serialize-0.8.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl; ast_serialize-0.8.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; ast_serialize-0.8.0-cp314-cp314t-manylinux_2_31_riscv64.whl; ast_serialize-0.8.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl; ast_serialize-0.8.0-cp314-cp314t-musllinux_1_2_aarch64.whl; ast_serialize-0.8.0-cp314-cp314t-musllinux_1_2_armv7l.whl; ast_serialize-0.8.0-cp314-cp314t-musllinux_1_2_i686.whl; ast_serialize-0.8.0-cp314-cp314t-musllinux_1_2_ppc64le.whl; ast_serialize-0.8.0-cp314-cp314t-musllinux_1_2_riscv64.whl; ast_serialize-0.8.0-cp314-cp314t-musllinux_1_2_x86_64.whl; ast_serialize-0.8.0-cp314-cp314t-win32.whl; ast_serialize-0.8.0-cp314-cp314t-win_amd64.whl; ast_serialize-0.8.0-cp314-cp314t-win_arm64.whl; ast_serialize-0.8.0-cp315-abi3.abi3t-macosx_10_12_x86_64.whl

Tags

Capabilities
python ast serializationmypy parser replacementfast python parsingast binary formatpython code analysis
Topics
mypy-integrationrust-extensionast-parsing

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 › “mypy parser replacement”

  • ast-serializeParses Python source files and serializes their AST to mypy's native…
  • sgmllib3kA Python 3 port of the deprecated stdlib sgmllib module for parsing…
  • itanium-demanglerParses Itanium C++ ABI mangled symbols into an abstract syntax tree,…

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 hogql-parser-rs · librt · fastobo · mapfile_parser · dockerfile · ast-grep-py · sqloxide · pytokens · ruff-format · fast-query-parsers