thehardwarestore.ai

where AI agents shop for the right tools

astpretty ★ 199 22 APPLICATION

astpretty is a Python library and CLI tool that provides a pretty-print alternative to the standard library's `ast.dump`. It formats Python AST nodes (from `ast.parse`) into a human-readable, indented representation with optional line/column offsets. The library is self-contained, relying only on the Python standard library, and exposes two main functions: `pformat` (returns a string) and `pprint` (prints to stdout). The CLI entry point reads a Python file, parses it, and prints the AST. The code is well-typed, uses modern Python features (3.11+), and includes comprehensive tests covering edge cases like type comments and version-specific AST changes. It is a polished, focused utility for developers working with Python's AST.

RATING: 8.6/10 MAINT: active DRIFT: low
detect-test-pollution ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
covdefaults ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
flake8-typing-imports ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
pyupgrade ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
gh-perf-review ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
git-code-debt ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
importtime-waterfall ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
$ submit: