Skip to main content

Python module to decompile AST to Python code

Project description

ast_decompiler is a module for generating Python code given an AST.

A usage example:

>> import ast
>> from ast_decompiler import decompile

>> decompile(ast.parse('(a + b) * c'))
(a + b) * c

This module has only been tested on Python 2.7.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ast_decompiler-0.0.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file ast_decompiler-0.0.tar.gz.

File metadata

File hashes

Hashes for ast_decompiler-0.0.tar.gz
Algorithm Hash digest
SHA256 b8b1585891ae3e3f75087727ea8aa05293bb160ad7639a414ecda19e85317858
MD5 96dff6cb6559050402ac29527c2455db
BLAKE2b-256 e8b5a0f45af15c28bab65e9453b0b5c66c85c3bc89a1bb506695e44ee60a308c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page