Skip to content

reflex-dev/fast-walk

Repository files navigation

fast-walk

A fast (almost) drop-in implementation of ast.walk.

Installation

pip install fast-walk

Usage

from fast_walk import walk
import ast

code = """
def hello(  x,y,   z  ):
    print( x+y+z )
"""

for node in walk(ast.parse(code)):
    pass

Development

Prerequisites

  • Rust (latest stable)
  • Python 3.13+
  • maturin

Building from source

# Install maturin
pip install maturin

# Build the package
maturin develop

# Or build a release version
maturin build --release

License

MIT

Links

About

fast ast walk

Resources

License

Stars

Watchers

Forks

Packages

No packages published