Skip to main content

ast_decompiler

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.8 through 3.13.

Tests and formatting

To run the tests, install pytest in a virtual environment. Then, either use tox, or simply run pytest tests/.

The code is formatted with Black.

Metadata

Release files for ast-decompiler 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ast-decompiler 0.8.0
File Size Uploaded
ast_decompiler-0.8.0.tar.gz 18.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ast-decompiler 0.8.0
File Interpreter ABI Platform
ast_decompiler-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.3 kB

Release files / ast_decompiler-0.8.0.tar.gz

Download URL ast_decompiler-0.8.0.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
daef5ca5c2bcb9ba7cf72a9308c7cd596c092d7201c0bbaf28947c721ce26441
BLAKE2b-256 checksum
How to use checksums
90c4734659d4b1d254d3c85afbd0e47e1e3e9e95d17c5022e0a105a97e00c35c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / ast_decompiler-0.8.0-py3-none-any.whl

Download URL ast_decompiler-0.8.0-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc2449883f153788d89b842967dbe871d6db14f53a178bf7ec601f393fe1e1bb
BLAKE2b-256 checksum
How to use checksums
5d40d6b10d5911541867e8397ccb76a6fd9399eae78de967d1209e7ee7d1cf13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

3 release files

0.3

2 release files

0.2

1 release file

0.1

2 release files

0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page