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.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

ast_decompiler-0.1-py2.7.egg (17.3 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for ast_decompiler-0.1.tar.gz
Algorithm Hash digest
SHA256 129d2659ae9adc024aee1b8f2c5a3d27ebebb4e156a6a10746bcc969af20b845
MD5 06d969f67caff9f2a78752b8b70a64a9
BLAKE2b-256 7d74d82dfb831bb48c9d763371b85037d636d790d7be43f6ece5a73dd64730f3

See more details on using hashes here.

Provenance

File details

Details for the file ast_decompiler-0.1-py2.7.egg.

File metadata

File hashes

Hashes for ast_decompiler-0.1-py2.7.egg
Algorithm Hash digest
SHA256 a3e30345cd751ec4d838dde78022143a69dc403fe74481a6bf11548db3d8b2da
MD5 0972f091ef00f91b1b54a425fe6ee3a7
BLAKE2b-256 e7f2432d7178d9db72fa9b88b9985d4079af4a9ddd8d668d36c52f27894b6ded

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