{ "info": { "author": "Jo\u00e3o Sampaio", "author_email": "jpmelos@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Code Generators" ], "description": "============\nImporganizer\n============\nImporganizer organizes any imports of Python files found in the start of the file, putting them in alphabetic order. Comments or docstrings in the first lines are not supported yet. This feature is planned.\n\nRequisites\n----------\n\nYour imports need to be formatted in these rules:\n\n* They must be at the start of the file (blank lines before the first import will be removed).\n* They must use forward-slash to define multi-line imports.\n* They must be separated from the rest of the file (Python code) by 2 empty lines.\n\n**GOOD:**\n\n::\n\n from django.models import Model, \\\n Manager\n\n**BAD:**\n\n::\n\n from django.models import (Model,\n Manager)\n\nUsage\n-----\n\nInstall using pip:\n\n::\n\n $ pip install imporganizer\n\nUse with the command line (main usage):\n\n::\n\n $ imporganizer organize-this.py --third-party=package1,package2 --homemade=package3,package4\n\nUpdate the standard packages list with:\n\n::\n\n $ imporganizer --update-builtin\n\nYou can't update the builtin list and organize a file with a single command, but this is a feature in our roadmap.\n\nOutput\n------\n\nThey will be categorized by:\n\n* **Standard:** all packages included with the default distribution of Python.\n* **Third party:** all packages not standard and not internal to the project.\n* **Homemade:** dependencies, packages and modules internal to the project.\n\nTo be able to categorize your packages this way, you must inform which ones are third party and which ones are internal to the project. You do this by the command line:\n\n::\n\n imporganizer organize-this.py --third-party=package1,package2 --homemade=package3,package4\n\nFor an input like this:\n\n::\n\n from django.forms import Form, \\\n CharField\n from textwrap import dedent\n\n from django.db.models import Model\n import sys\n import os\n import internal\n\n import another_internal\n\n\n print('hey')\n\nThe output will be:\n\n::\n\n import os\n import sys\n from textwrap import dedent\n\n from django.db.models import Model\n from django.forms import CharField, \\\n Form\n\n import another_internal\n import internal\n\n\n print('hey')\n\nIt will assume a maximum line length of 79 characters.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jpmelos/imporganizer", "keywords": "development import organizer organizing", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "imporganizer", "package_url": "https://pypi.org/project/imporganizer/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/imporganizer/", "project_urls": { "Homepage": "http://github.com/jpmelos/imporganizer" }, "release_url": "https://pypi.org/project/imporganizer/1.1.1/", "requires_dist": null, "requires_python": "", "summary": "A Python import organizer", "version": "1.1.1" }, "last_serial": 1986442, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "1aa39c52ba6a0d93328aa922055fc5f9", "sha256": "149705a21349c611f4297809ace7bf844be37c583e7774955518109fd6c95a5f" }, "downloads": -1, "filename": "imporganizer-1.0.0.tar.gz", "has_sig": false, "md5_digest": "1aa39c52ba6a0d93328aa922055fc5f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3594, "upload_time": "2015-11-20T15:54:03", "url": "https://files.pythonhosted.org/packages/b9/de/0bc352b561b21f9aabf5a0d3b3b1ffc9ca4f3b01d3e892cff18992c0976f/imporganizer-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b65fdb0af6fba322fa403d0b4d5fe9fc", "sha256": "d5fc42295ba8f8eba3725708ba871893e9b4f3f5ac936f8846614f8ec26369e8" }, "downloads": -1, "filename": "imporganizer-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b65fdb0af6fba322fa403d0b4d5fe9fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3580, "upload_time": "2015-11-24T14:59:41", "url": "https://files.pythonhosted.org/packages/ee/b0/a25b4548e0a207930bfb4df6742c9d8d9486448dcedf9eff8f67c8b5d5ef/imporganizer-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "c633a50861bd5bd80fff406f78b3c498", "sha256": "a5b12a4e10959eeb7307549fffa40e2123f9edf6f0b88cbfffb24dfa6d7b8e5e" }, "downloads": -1, "filename": "imporganizer-1.0.2.tar.gz", "has_sig": false, "md5_digest": "c633a50861bd5bd80fff406f78b3c498", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3626, "upload_time": "2015-12-15T02:52:55", "url": "https://files.pythonhosted.org/packages/34/88/fc9c9f1e3a9b4e32da957e3b1887f0e46f70a75dff3b694d8dc11365d1f3/imporganizer-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "7077f42c70023c13179228406ac9cec0", "sha256": "7b646d316e7c3441687c28305fb09c547cf2145e0850499de369bf0963f88f32" }, "downloads": -1, "filename": "imporganizer-1.0.3.tar.gz", "has_sig": false, "md5_digest": "7077f42c70023c13179228406ac9cec0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3638, "upload_time": "2015-12-15T03:05:04", "url": "https://files.pythonhosted.org/packages/f5/67/6fd91f3ff52cf24a0cecacaef938db2236e4acbd9275134576e36e8b3ed7/imporganizer-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "c0f3bb3d24e4aa8c31b7d6b69ddd79ce", "sha256": "fb40931cfd3ae0e0f01501543c30e0190baf85b85dd32b590503e498fe5e8680" }, "downloads": -1, "filename": "imporganizer-1.0.4.tar.gz", "has_sig": false, "md5_digest": "c0f3bb3d24e4aa8c31b7d6b69ddd79ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3626, "upload_time": "2015-12-23T18:16:08", "url": "https://files.pythonhosted.org/packages/16/09/259fa331d79c5ee54e03a5789775bd1df234b3b959b731c1f481a7e17295/imporganizer-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "20893235c19ff7d74c665991bfb58950", "sha256": "c4adc19f9fd12aaed7586f557405f11b1984fc3ce308d3e678b4d54e6cfd4b46" }, "downloads": -1, "filename": "imporganizer-1.0.5.tar.gz", "has_sig": false, "md5_digest": "20893235c19ff7d74c665991bfb58950", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3632, "upload_time": "2015-12-23T18:18:58", "url": "https://files.pythonhosted.org/packages/e0/67/404e7446d61c1ef1e940b4b9a59c6020b9115f7b2d916ff03846a0f0c332/imporganizer-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "6a76d3857235bf15deacbe8671b15555", "sha256": "531567f20b8675541ff6205664e6dc5abaf72a69923868a90263920239d74ed8" }, "downloads": -1, "filename": "imporganizer-1.0.6.tar.gz", "has_sig": false, "md5_digest": "6a76d3857235bf15deacbe8671b15555", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3636, "upload_time": "2016-02-13T18:15:48", "url": "https://files.pythonhosted.org/packages/53/14/4e6867c961602738f95a3854303234b0c55593cae973a66aed72388c6ed4/imporganizer-1.0.6.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "42a6ca23598be416cb3b56060e91928d", "sha256": "bbb49ec11c87f1904a7833f013a0cc4cdc72c602aeb54fb60a3284946cb371e9" }, "downloads": -1, "filename": "imporganizer-1.1.tar.gz", "has_sig": false, "md5_digest": "42a6ca23598be416cb3b56060e91928d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6012, "upload_time": "2016-03-02T20:37:08", "url": "https://files.pythonhosted.org/packages/10/29/66ce6802635ef7654a2a309ceb6eb88b72496219022265496dae83b37d01/imporganizer-1.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "cf352836b284ef4c74be512015ec1acf", "sha256": "247e00718490c44f2a3a3e409a250d24beed9c4508b79f71015dc650052d3956" }, "downloads": -1, "filename": "imporganizer-1.1.1.tar.gz", "has_sig": false, "md5_digest": "cf352836b284ef4c74be512015ec1acf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6091, "upload_time": "2016-03-02T21:02:08", "url": "https://files.pythonhosted.org/packages/05/58/bce25806d96aa3b758a333150c027af0679d7fec59bf2c9be100a74e01b6/imporganizer-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cf352836b284ef4c74be512015ec1acf", "sha256": "247e00718490c44f2a3a3e409a250d24beed9c4508b79f71015dc650052d3956" }, "downloads": -1, "filename": "imporganizer-1.1.1.tar.gz", "has_sig": false, "md5_digest": "cf352836b284ef4c74be512015ec1acf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6091, "upload_time": "2016-03-02T21:02:08", "url": "https://files.pythonhosted.org/packages/05/58/bce25806d96aa3b758a333150c027af0679d7fec59bf2c9be100a74e01b6/imporganizer-1.1.1.tar.gz" } ] }