{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/7"}],"enrichment":{"capability":"Pretty-print Python abstract syntax trees (AST) from stdlib ast.parse in a readable, hierarchical format with optional line/column offsets, as a more legible alternative to ast.dump.","skillfed_tags":["ast-inspection","debugging-tool","code-analysis"],"use_cases":["Debug Python code by inspecting its AST structure during linter or code-analysis tool development.","Visualize parsed syntax in REPL sessions or notebooks to understand how Python parses specific code patterns.","Generate readable AST dumps in test output or documentation to verify code transformation logic.","Inspect type-annotated code structures when using typed-ast for Python 2 or type-comment parsing."],"what_it_does":"astpretty formats Python abstract syntax trees into indented, readable output that makes it easy to inspect the structure of parsed code. It wraps stdlib ast.parse results and provides two main functions: pprint() to display a tree directly, and pformat() to return it as a string. You can control indentation style and choose whether to include line/column offset metadata, which ast.dump does not easily allow.\n\nThe package is a thin, zero-dependency utility designed for developers debugging or analyzing Python code at the AST level\u2014particularly useful in linters, code generators, and syntax analysis tools. It also supports typed-ast for type-annotated parsing when installed as an optional extra.","worth_installing":"Yes. astpretty is a lightweight, actively maintained utility with no dependencies, permissive licensing, and a clear single purpose: making AST inspection readable. Install it if you work with Python's ast module and want output that doesn't collapse into a single unreadable line. No security concerns, no friction."},"id":"astpretty","links":{"html":"https://skillfed.io/packages/astpretty","md":"https://skillfed.io/packages/astpretty.md","pypi":"https://pypi.org/project/astpretty/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2022-05-16","license_spdx":null,"license_treatment":"permissive","name":"astpretty","python_support":"supports_current","summary":"Pretty print the output of python stdlib `ast.parse`."},"popularity":{"monthly_downloads":552844,"position":6041,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.0.0"}
