{ "info": { "author": "Simon Percivall", "author_email": "percivall@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Code Generators" ], "description": "============\nAST Unparser\n============\n\n.. image:: https://badge.fury.io/py/astunparse.png\n :target: http://badge.fury.io/py/astunparse\n\n.. image:: https://travis-ci.org/simonpercivall/astunparse.png?branch=master\n :target: https://travis-ci.org/simonpercivall/astunparse\n\n.. image:: https://readthedocs.org/projects/astunparse/badge/\n :target: https://astunparse.readthedocs.org/\n\nAn AST unparser for Python.\n\nThis is a factored out version of ``unparse`` found in the Python\nsource distribution; under Demo/parser in Python 2 and under Tools/parser\nin Python 3.\n\nBasic example::\n\n import inspect\n import ast\n import astunparse\n\n # get back the source code\n astunparse.unparse(ast.parse(inspect.getsource(ast)))\n\n # get a pretty-printed dump of the AST\n astunparse.dump(ast.parse(inspect.getsource(ast)))\n\n\nThis library is single-source compatible with Python 2.6 through Python 3.5. It\nis authored by the Python core developers; I have simply merged the Python 2.7\nand the Python 3.5 source and test suites, and added a wrapper. This factoring\nout is to provide a library implementation that supports both versions.\n\nAdded to this is a pretty-printing ``dump`` utility function.\n\nThe test suite both runs specific tests and also roundtrips much of the\nstandard library.\n\nExtensions and Alternatives\n---------------------------\n\nSimilar projects include:\n\n * codegen_\n * astor_\n * astmonkey_\n * astprint_\n\nNone of these roundtrip much of the standard library and fail several of the basic\ntests in the ``test_unparse`` test suite.\n\nThis library uses mature and core maintained code instead of trying to patch\nexisting libraries. The ``unparse`` and the ``test_unparse`` modules\nare under the PSF license.\n\nExtensions include:\n\n * typed-astunparse: extends astunparse to support type annotations.\n\n* Documentation: http://astunparse.rtfd.org.\n\nFeatures\n--------\n\n* unparses Python AST.\n* pretty-prints AST.\n\n\n.. _codegen: https://github.com/andreif/codegen\n.. _astor: https://github.com/berkerpeksag/astor\n.. _astmonkey: https://github.com/konradhalas/astmonkey\n.. _astprint: https://github.com/Manticore/astprint\n\n\nChangelog\n=========\n\nHere's the recent changes to AST Unparser.\n\n1.5.0 - 2017-02-05\n~~~~~~~~~~~~~~~~~~\n\n* Python 3.6 compatibility\n* bugfix: correct argparser option type\n\n1.4.0 - 2016-06-24\n~~~~~~~~~~~~~~~~~~\n\n* Support for the ``async`` keyword\n* Support for unparsing \"Interactive\" and \"Expression\" nodes\n\n1.3.0 - 2016-01-17\n~~~~~~~~~~~~~~~~~~\n\n* Python 3.5 compatibility\n\n1.2.0 - 2014-04-03\n~~~~~~~~~~~~~~~~~~\n\n* Python 2.6 through 3.4 compatibility\n* A new function ``dump`` is added to return a pretty-printed version\n of the AST. It's also available when running ``python -m astunparse``\n as the ``--dump`` argument.\n\n1.1.0 - 2014-04-01\n~~~~~~~~~~~~~~~~~~\n\n* ``unparse`` will return the source code for an AST. It is pretty\n feature-complete, and round-trips the stdlib, and is compatible with\n Python 2.7 and Python 3.4.\n\n Running ``python -m astunparse`` will print the round-tripped source\n for any python files given as argument.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nitros12/astunparse", "keywords": "astunparse", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "astunparse-noparen", "package_url": "https://pypi.org/project/astunparse-noparen/", "platform": "", "project_url": "https://pypi.org/project/astunparse-noparen/", "project_urls": { "Homepage": "https://github.com/nitros12/astunparse" }, "release_url": "https://pypi.org/project/astunparse-noparen/1.5.6/", "requires_dist": null, "requires_python": "", "summary": "An AST unparser for Python", "version": "1.5.6" }, "last_serial": 3249224, "releases": { "1.5.1": [ { "comment_text": "", "digests": { "md5": "5e4308ef9e1be92fb26eb075e8c8e558", "sha256": "b7f4d44b6d77e7846f6a405b36ffcbcd29e7c5e5c0b8a19903eae617e92c8c43" }, "downloads": -1, "filename": "astunparse-noparen-1.5.1.tar.gz", "has_sig": false, "md5_digest": "5e4308ef9e1be92fb26eb075e8c8e558", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13432, "upload_time": "2017-09-24T20:43:53", "url": "https://files.pythonhosted.org/packages/11/9c/9783b163882359d317d0839ec746041d6af8e2ed3440329ac48153722717/astunparse-noparen-1.5.1.tar.gz" } ], "1.5.2": [ { "comment_text": "", "digests": { "md5": "d4ae5c85f516c9219fd1528ed56ac2c2", "sha256": "bc0066e2fa4d22085d3ea50def5897ce3cd52fb4226821bcbb1ea44471b884a5" }, "downloads": -1, "filename": "astunparse-noparen-1.5.2.tar.gz", "has_sig": false, "md5_digest": "d4ae5c85f516c9219fd1528ed56ac2c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13447, "upload_time": "2017-10-13T22:01:20", "url": "https://files.pythonhosted.org/packages/ef/f0/c6d91989d8eaf7a65820885ec4b2c039fbc2f383e04a7641ebea18002e5e/astunparse-noparen-1.5.2.tar.gz" } ], "1.5.3": [ { "comment_text": "", "digests": { "md5": "1962d3f18d9cd191f2464b4be10a8e5a", "sha256": "87d46a35238eca87658b75fe1ab11cccf8185f7c42d2132e1257b62d4220bdc9" }, "downloads": -1, "filename": "astunparse-noparen-1.5.3.tar.gz", "has_sig": false, "md5_digest": "1962d3f18d9cd191f2464b4be10a8e5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13441, "upload_time": "2017-10-13T22:03:23", "url": "https://files.pythonhosted.org/packages/94/84/3759f5038f24f9624f1f83a3a4ec15d7f8055299a2c656deb6497081bc12/astunparse-noparen-1.5.3.tar.gz" } ], "1.5.4": [ { "comment_text": "", "digests": { "md5": "100fa283acc125ee7a1675028763971e", "sha256": "dfad9537e6c94cf2f2aa9eaccc65ccbda98b76fa5a900ce850bdb4799d51895b" }, "downloads": -1, "filename": "astunparse-noparen-1.5.4.tar.gz", "has_sig": false, "md5_digest": "100fa283acc125ee7a1675028763971e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13442, "upload_time": "2017-10-13T22:10:32", "url": "https://files.pythonhosted.org/packages/d2/22/90bc737aaa9694f60d0714f1ee24f229f985b6711e198f061a84ad0ea059/astunparse-noparen-1.5.4.tar.gz" } ], "1.5.6": [ { "comment_text": "", "digests": { "md5": "9c0d722eb104cccbd1e154c463ef2b5d", "sha256": "7b5fbd55c6118fce675365a27712e6662f8c4ba3ef44e17258a0012261ec5558" }, "downloads": -1, "filename": "astunparse-noparen-1.5.6.tar.gz", "has_sig": false, "md5_digest": "9c0d722eb104cccbd1e154c463ef2b5d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13469, "upload_time": "2017-10-13T22:38:19", "url": "https://files.pythonhosted.org/packages/3f/06/629a59dbbfee1643a4b24a0a3c2ccd944c9aa0887b314e2dd790bb8366d5/astunparse-noparen-1.5.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9c0d722eb104cccbd1e154c463ef2b5d", "sha256": "7b5fbd55c6118fce675365a27712e6662f8c4ba3ef44e17258a0012261ec5558" }, "downloads": -1, "filename": "astunparse-noparen-1.5.6.tar.gz", "has_sig": false, "md5_digest": "9c0d722eb104cccbd1e154c463ef2b5d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13469, "upload_time": "2017-10-13T22:38:19", "url": "https://files.pythonhosted.org/packages/3f/06/629a59dbbfee1643a4b24a0a3c2ccd944c9aa0887b314e2dd790bb8366d5/astunparse-noparen-1.5.6.tar.gz" } ] }