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)
| File | Size | Uploaded | |
|---|---|---|---|
| ast_decompiler-0.8.0.tar.gz | 18.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|