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 supports Python 3.6 through 3.10.

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

Uploaded Source

Built Distribution

ast_decompiler-0.5.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ast_decompiler-0.5.0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for ast_decompiler-0.5.0.tar.gz
Algorithm Hash digest
SHA256 99d3ff2555db88ab1516c64f93766307e93f2f450132803b7efe2570c1ab9f12
MD5 e119ae163503aef8490befe49de9831a
BLAKE2b-256 09ec8695457a2ef7dd6378e95ae2b24bc19b170a8e0fa3603bdb363512d703c6

See more details on using hashes here.

Provenance

File details

Details for the file ast_decompiler-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ast_decompiler-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d4c8029f2341ea7ece298615b396c87a9dbc4b528516bd99a76831cb45522ec
MD5 32b567d303a8dbef9de80b4c15edb156
BLAKE2b-256 f615c77af1ce84203a12d8d0c64083e70eb529464e03ddf82df0aaad286726b6

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