{ "info": { "author": "Johnson Earls", "author_email": "darkfoxprime@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "ASTFormatter\n============\n\nThe ASTFormatter class accepts an AST tree and returns a valid source code representation of that tree.\n\nExample Usage\n-------------\n\n::\n\n from astformatter import ASTFormatter\n import ast\n\n tree = ast.parse(open('modulefile.py'), 'modulefile.py', mode='exec')\n src = ASTFormatter().format(tree, mode='exec')\n\nBugs\n----\n\n- Currently, indentation is fixed at 4 spaces.\n\n- Too many methods are exposed that shouldn't be, in order to properly subclass `ast.NodeVisitor`.\n\n- Need to make the statement visitor methods consistent about returning a list of strings; most still just return a string.\n\n- Code modified to work with 3.x needs cleanup\n\nLatest Changes\n--------------\n\n`0.6.4 <'https://pypi.python.org/pypi?:action=display&name=ASTFormatter&version=0.6.4'>`_ (2017-06-25)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n- Process docstring if exsts in Module, ClassDef, and FunctionDef\n nodes.\n `#9 `_\n (`darkfoxprime `_)\n- Add parens around unary operands if necessary\n `#8 `_\n (`zerebubuth `_)\n\nCopyright\n---------\n\nCopyright |copy| 2015-2016 by Johnson Earls. Some rights reserved. See the license_ for details.\n\n.. _license: https://raw.githubusercontent.com/darkfoxprime/python-astformatter/master/LICENSE\n.. |copy| unicode:: 0xA9 .. copyright sign", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/darkfoxprime/python-astformatter", "keywords": "AST,source code formatter", "license": "ISC", "maintainer": "", "maintainer_email": "", "name": "ASTFormatter", "package_url": "https://pypi.org/project/ASTFormatter/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ASTFormatter/", "project_urls": { "Homepage": "https://github.com/darkfoxprime/python-astformatter" }, "release_url": "https://pypi.org/project/ASTFormatter/0.6.4/", "requires_dist": null, "requires_python": "", "summary": "The ASTFormatter class accepts an AST tree and returns a valid source code representation of that tree.", "version": "0.6.4" }, "last_serial": 2976586, "releases": { "0.6.0": [ { "comment_text": "", "digests": { "md5": "b8c44d5fa431d14cab177fc1975e46a8", "sha256": "9ad16e8ed7725a8e8540cb714a0c86f64aebc400d4cec1a1abac8878b471147e" }, "downloads": -1, "filename": "ASTFormatter-0.6.0.tar.gz", "has_sig": true, "md5_digest": "b8c44d5fa431d14cab177fc1975e46a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6976, "upload_time": "2015-05-11T22:05:52", "url": "https://files.pythonhosted.org/packages/07/cb/950c23b56930624c26d99003fea316df39400d6a98ebfed9502e1a9fb7e7/ASTFormatter-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "503515c8e1d0945d12a4934fbe39e2b6", "sha256": "fe91e9fd8b7dd9d9353381bd6e1aa2b5399840477c96e3b95cc664ec824e8021" }, "downloads": -1, "filename": "ASTFormatter-0.6.1.tar.gz", "has_sig": true, "md5_digest": "503515c8e1d0945d12a4934fbe39e2b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6851, "upload_time": "2015-05-12T05:11:34", "url": "https://files.pythonhosted.org/packages/0c/d9/30aadb1c5efa4f3404eed9b7b15d6824636204b37742cad450168eb2e49a/ASTFormatter-0.6.1.tar.gz" } ], "0.6.2": [ { "comment_text": "", "digests": { "md5": "5b6ed9daa4a78a697f18b4483f98abea", "sha256": "210cc1e594a4924d2b2bb0c119fb4f96f538b79a81be64356d45405596089b42" }, "downloads": -1, "filename": "ASTFormatter-0.6.2.tar.gz", "has_sig": true, "md5_digest": "5b6ed9daa4a78a697f18b4483f98abea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6967, "upload_time": "2016-03-19T18:36:33", "url": "https://files.pythonhosted.org/packages/f4/90/f3ec92afd33310e80ce3d7dc6ec63c987cac767429f93bfec066af0ed553/ASTFormatter-0.6.2.tar.gz" } ], "0.6.3": [], "0.6.4": [ { "comment_text": "", "digests": { "md5": "c9ee9b2d53cd9d645aef5628274c1be4", "sha256": "e24e7763bcc8c96d4c7f86b6be2ab524911fc69af9e1d1580113759c5ab12002" }, "downloads": -1, "filename": "ASTFormatter-0.6.4.tar.gz", "has_sig": true, "md5_digest": "c9ee9b2d53cd9d645aef5628274c1be4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7563, "upload_time": "2017-06-25T02:51:12", "url": "https://files.pythonhosted.org/packages/1f/cd/4693e78b97d1bb7525a460be2907922f4432e752a6057b2b942bb38345e7/ASTFormatter-0.6.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c9ee9b2d53cd9d645aef5628274c1be4", "sha256": "e24e7763bcc8c96d4c7f86b6be2ab524911fc69af9e1d1580113759c5ab12002" }, "downloads": -1, "filename": "ASTFormatter-0.6.4.tar.gz", "has_sig": true, "md5_digest": "c9ee9b2d53cd9d645aef5628274c1be4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7563, "upload_time": "2017-06-25T02:51:12", "url": "https://files.pythonhosted.org/packages/1f/cd/4693e78b97d1bb7525a460be2907922f4432e752a6057b2b942bb38345e7/ASTFormatter-0.6.4.tar.gz" } ] }