{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/14"}],"enrichment":{"capability":"Converts Python abstract syntax trees (ASTs) back into readable Python source code, allowing you to reconstruct or inspect code from its parsed AST representation.","skillfed_tags":["ast-manipulation","code-generation"],"use_cases":["Debug or inspect dynamically generated or modified ASTs by converting them back to readable code.","Implement code transformation tools that need to display or log the result of AST modifications.","Build educational tools or documentation that show how Python code maps to its AST representation.","Generate test fixtures or example code from programmatically constructed AST objects."],"what_it_does":"ast_decompiler takes a Python AST object and generates human-readable Python source code from it. This is useful when you have parsed code as an AST (via ast.parse or similar) and need to recover or inspect the original source, or when you're working with dynamically constructed ASTs and want to see what code they represent.\n\nThe package supports Python 3.8 through 3.13 and has no runtime dependencies, making it lightweight to integrate. It is actively maintained with recent activity, and the codebase is formatted with Black. The module is straightforward to use: pass an AST node to the decompile function and receive a string of reconstructed Python code.","worth_installing":"Yes. The package is lightweight (no dependencies), actively maintained with recent commits, supports current Python versions, and has no known vulnerabilities. Install it if you need to convert ASTs back to source code for inspection, debugging, or code generation workflows."},"id":"ast-decompiler","links":{"html":"https://skillfed.io/packages/ast-decompiler","md":"https://skillfed.io/packages/ast-decompiler.md","pypi":"https://pypi.org/project/ast-decompiler/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-05-17","license_spdx":null,"license_treatment":"permissive","name":"ast-decompiler","python_support":"supports_current","summary":"Python module to decompile AST to Python code"},"popularity":{"monthly_downloads":175951,"position":10256,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.8.0"}
