GitXplorerGitXplorer
J

ast_decompiler

public
38 stars
10 forks
2 issues

Commits

List of commits on branch master.
Verified
67a8fd1660140104ae9e35783690d58b080fcd79

Prepare release 0.8.0 (#57)

JJelleZijlstra committed 8 months ago
Verified
959c106baea2952807308ac368c0c23ca978be71

Fix publish workflow (#58)

JJelleZijlstra committed 8 months ago
Verified
2468fe6ac39149c80a1a7e8072c08643662ad6f1

Treat warnings as errors (#56)

JJelleZijlstra committed 8 months ago
Verified
a115591ee1681562cc3c23fde712854f7bfec3da

Use Trusted Publishing (#55)

JJelleZijlstra committed 8 months ago
Verified
28dad2d18b1fe2e3df2dfa5d99efb6c158b80e53

Add PEP 695 test (#54)

JJelleZijlstra committed 8 months ago
Verified
41c5f1c168c1c16432732ccfb5fce38fc597c7f5

Various modernizations (#53)

JJelleZijlstra committed 8 months ago

README

The README file for this repository.

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.