https://github.com/reflex-dev/fast-walk
fast ast walk
https://github.com/reflex-dev/fast-walk
Last synced: 6 days ago
JSON representation
fast ast walk
- Host: GitHub
- URL: https://github.com/reflex-dev/fast-walk
- Owner: reflex-dev
- License: mit
- Created: 2025-11-06T02:03:09.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-11-06T02:40:55.000Z (3 months ago)
- Last Synced: 2025-11-06T04:13:22.210Z (3 months ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fast-walk
A fast (almost) drop-in implementation of `ast.walk`.
## Installation
```bash
pip install fast-walk
```
## Usage
```python
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](https://github.com/PyO3/maturin)
### Building from source
```bash
# Install maturin
pip install maturin
# Build the package
maturin develop
# Or build a release version
maturin build --release
```
## License
MIT
## Links
- [Repository](https://github.com/reflex-dev/fast-walk)