ast-decompiler


Nameast-decompiler JSON
Version 0.8.0 PyPI version JSON
download
home_pageNone
SummaryPython module to decompile AST to Python code
upload_time2024-05-17 11:25:27
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords ast decompiler
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            **************
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.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ast-decompiler",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "ast, decompiler",
    "author": null,
    "author_email": "Jelle Zijlstra <jelle.zijlstra@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/90/c4/734659d4b1d254d3c85afbd0e47e1e3e9e95d17c5022e0a105a97e00c35c/ast_decompiler-0.8.0.tar.gz",
    "platform": null,
    "description": "**************\nast_decompiler\n**************\n\nast_decompiler is a module for generating Python code given an AST.\n\nA usage example::\n\n    >> import ast\n    >> from ast_decompiler import decompile\n\n    >> decompile(ast.parse('(a + b) * c'))\n    (a + b) * c\n\nThis module supports Python 3.8 through 3.13.\n\n====================\nTests and formatting\n====================\n\nTo run the tests, install ``pytest`` in a virtual environment. Then, either use\n``tox``, or simply run ``pytest tests/``.\n\nThe code is formatted with Black.\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python module to decompile AST to Python code",
    "version": "0.8.0",
    "project_urls": {
        "Home": "https://github.com/JelleZijlstra/ast_decompiler"
    },
    "split_keywords": [
        "ast",
        " decompiler"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5d40d6b10d5911541867e8397ccb76a6fd9399eae78de967d1209e7ee7d1cf13",
                "md5": "cbbeb9e2264fa17cf8abb69ea0c0c913",
                "sha256": "bc2449883f153788d89b842967dbe871d6db14f53a178bf7ec601f393fe1e1bb"
            },
            "downloads": -1,
            "filename": "ast_decompiler-0.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cbbeb9e2264fa17cf8abb69ea0c0c913",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 13794,
            "upload_time": "2024-05-17T11:25:26",
            "upload_time_iso_8601": "2024-05-17T11:25:26.211323Z",
            "url": "https://files.pythonhosted.org/packages/5d/40/d6b10d5911541867e8397ccb76a6fd9399eae78de967d1209e7ee7d1cf13/ast_decompiler-0.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "90c4734659d4b1d254d3c85afbd0e47e1e3e9e95d17c5022e0a105a97e00c35c",
                "md5": "c76918bf082db264b368faea49257244",
                "sha256": "daef5ca5c2bcb9ba7cf72a9308c7cd596c092d7201c0bbaf28947c721ce26441"
            },
            "downloads": -1,
            "filename": "ast_decompiler-0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c76918bf082db264b368faea49257244",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 18526,
            "upload_time": "2024-05-17T11:25:27",
            "upload_time_iso_8601": "2024-05-17T11:25:27.447930Z",
            "url": "https://files.pythonhosted.org/packages/90/c4/734659d4b1d254d3c85afbd0e47e1e3e9e95d17c5022e0a105a97e00c35c/ast_decompiler-0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-17 11:25:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "JelleZijlstra",
    "github_project": "ast_decompiler",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "test_requirements": [
        {
            "name": "pytest",
            "specs": []
        }
    ],
    "tox": true,
    "lcname": "ast-decompiler"
}
        
Elapsed time: 0.27139s