{ "info": { "author": "Ted Tenedorio", "author_email": "tedtenedorio@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Build Tools" ], "description": "# Installation\npip install ImportDoctor\n# Usage\n`from ImportDoctor import ImportDoctor`\n### Basic\n`ImportDoctor.run(filename)`\n### Advanced\nThis example creates a doctor and changes the settings to be pep8 compliant [*read* ugly].\nThen it analyzes a file, pulling all information into the class. Finally we sort the imports and write all of the data to a destination file.\n```\ndoc = ImportDoctor()\ndoc.order_alphabetically = True\ndoc.wrap_depth = 79\ndoc.wrap_strict = True\ndoc.comment_names = False\ndoc.analyze(filename)\ndoc.sort_imports()\ndoc.remap(destination_filename)\n```\n### Controls\nThe following is a list of all controls meant to be used externally.\nI have included their default values (see code for regex patterns) as well as a brief description. More to come eventually.\n```\nignore_indented = True # Grabs indented imports if false\ngroup_by_module_type = True # Separates system modules from local ones\ndescending = True # Primary order on sort: True => BIG to small\none_import_per_line = True # Separates grouped imports onto their own lines\nexclude_from = True # Sort on string before 'import' for 'from' imports\nimport_ontop = True # Place all 'from' imports below standard imports\nwrap_strict = False # If true, wrap_depth will be strictly enforced\nwrap_depth = 0 # If > 25, lines will be wrapped using a backslash\ncomment_names = True # If true, groups will be named in comments above group\norder_alphabetically = False# If true, imports are sortend alphabetically, not on length\nregex_find_import = ... # The compiled regular expression for finding lines like 'import A'\nregex_find_from = ... # The compiled regular expression for finding like 'from A import B'\nisolated_groups = [] # A list of modules that will be grouped and sorted separately from other imports\n```\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/freetheinterns/import_doctor", "keywords": "import tool format development", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "ImportDoctor", "package_url": "https://pypi.org/project/ImportDoctor/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ImportDoctor/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/freetheinterns/import_doctor" }, "release_url": "https://pypi.org/project/ImportDoctor/1.2.2.3/", "requires_dist": null, "requires_python": null, "summary": "Python file formatter for import statements", "version": "1.2.2.3" }, "last_serial": 2243238, "releases": { "1.2.2.1": [ { "comment_text": "", "digests": { "md5": "bf93eec76bdfd1537795e9226248ac31", "sha256": "89b14830a18c3705c420188a9f50ad43d735d42049e527f89d5e2d0229d093e6" }, "downloads": -1, "filename": "ImportDoctor-1.2.2.1.tar.gz", "has_sig": false, "md5_digest": "bf93eec76bdfd1537795e9226248ac31", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20857, "upload_time": "2016-07-07T19:23:55", "url": "https://files.pythonhosted.org/packages/63/90/f0eb4622454e0c1befaed4b225a6a4b9e3d3953ce9d213914eaa15c835c2/ImportDoctor-1.2.2.1.tar.gz" } ], "1.2.2.2": [ { "comment_text": "", "digests": { "md5": "ec16f3e9ce7b5e880368d5de09aa8734", "sha256": "d727b69867228dd5afbf69f1ebfc467feb5d0fe1b6539acee246178b9c2b157e" }, "downloads": -1, "filename": "ImportDoctor-1.2.2.2.tar.gz", "has_sig": false, "md5_digest": "ec16f3e9ce7b5e880368d5de09aa8734", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20894, "upload_time": "2016-07-15T15:45:25", "url": "https://files.pythonhosted.org/packages/5c/4f/12e8cd58ccf69907cb00919035a8c4ab3c0a05ff2257ece8df1dd79a85c6/ImportDoctor-1.2.2.2.tar.gz" } ], "1.2.2.3": [ { "comment_text": "", "digests": { "md5": "218ce3a7fe981054d9a0ff06aa278296", "sha256": "48b78f0c8e797c2a7cafa322c6dafd81291af2afbe327a795b8a1085b1862b51" }, "downloads": -1, "filename": "ImportDoctor-1.2.2.3.tar.gz", "has_sig": false, "md5_digest": "218ce3a7fe981054d9a0ff06aa278296", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20931, "upload_time": "2016-07-25T21:10:02", "url": "https://files.pythonhosted.org/packages/6d/4a/09e3e96d0fe0eaf7dd273e3074b7fb99f7c54a0da6848d9a9b8ba4aa3b09/ImportDoctor-1.2.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "218ce3a7fe981054d9a0ff06aa278296", "sha256": "48b78f0c8e797c2a7cafa322c6dafd81291af2afbe327a795b8a1085b1862b51" }, "downloads": -1, "filename": "ImportDoctor-1.2.2.3.tar.gz", "has_sig": false, "md5_digest": "218ce3a7fe981054d9a0ff06aa278296", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20931, "upload_time": "2016-07-25T21:10:02", "url": "https://files.pythonhosted.org/packages/6d/4a/09e3e96d0fe0eaf7dd273e3074b7fb99f7c54a0da6848d9a9b8ba4aa3b09/ImportDoctor-1.2.2.3.tar.gz" } ] }