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 been tested on Python 2.7 and 3.6.

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

Uploaded Source

Built Distribution

ast_decompiler-0.3-py2.py3-none-any.whl (9.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for ast_decompiler-0.3.tar.gz
Algorithm Hash digest
SHA256 fcf850d67c2501347bb32732e249cb74aa69468d4221f875c732c2fb9e05f79f
MD5 390a5d7d7529b1fa392c8e0b473a0040
BLAKE2b-256 89e2ac4883b165d03017afbe9d936f3eedaf64f751f8d2de6d4aadcdecf8aecd

See more details on using hashes here.

Provenance

File details

Details for the file ast_decompiler-0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ast_decompiler-0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6ca5aa551f8ecfde9905559ad91fce2a4b987b7e514f36982ec08be80138bb3b
MD5 4bfb81d9a1275ba9eaf52c426a19a226
BLAKE2b-256 62c59d7d328be8bffcb7fd7662f49efbc62d3655b0872bd8dcb43ea116ef1178

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