{ "info": { "author": "Anton Agestam", "author_email": "git@antonagestam.se", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.7" ], "description": "# sorti\n\nAn opinionated CLI for [asottile/reorder_python_imports].\n\n## Installation\n\n```bash\npip install sorti\n```\n\n## Usage\n\n```bash\nsorti [-h] [--check] [--version] [source [source ...]]\n```\n\n### Examples\n\nSorting imports in a single file\n\n```bash\nsorti my/file.py\n```\n\nChecking if any files in a directory need sorting\n\n```bash\nsorti --check my/directory\n```\n\n## Why?\n\nThis package makes the features of reorder_python_imports fit into my workflow.\nI think the original project is awesome, but the CLI does not work the way I\nwould like it to.\n\nMy opinions diverge from asottile's on these issues.\n\n- https://github.com/asottile/reorder_python_imports/issues/45\n- https://github.com/asottile/reorder_python_imports/issues/74\n- https://github.com/asottile/reorder_python_imports/pull/76\n\nSo, `sorti` will support a much narrower use case than the original project. \nThe command has one flag: `--check`, which will make the command output the\nfiles it would change and return an exit code of 1 if there are changes to be\nmade.\n\n`sorti` uses source file discovery from [python/black] and aims to find the same\nfiles, given the same inputs.\n\nI don't intend to support anything else than latest stable Python, for the\nmoment that is 3.7.\n\n[asottile/reorder_python_imports]: https://github.com/asottile/reorder_python_imports\n[python/black]: https://github.com/python/black\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "sorti", "package_url": "https://pypi.org/project/sorti/", "platform": "", "project_url": "https://pypi.org/project/sorti/", "project_urls": null, "release_url": "https://pypi.org/project/sorti/2.0.0/", "requires_dist": [ "reorder-python-imports (>=1.5.0)", "black (>=19.3b0)" ], "requires_python": ">=3.7", "summary": "An opinionated CLI for asottile/reorder_python_imports", "version": "2.0.0" }, "last_serial": 5492810, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "77ea34567bdc473be6e3671598fe411e", "sha256": "4cccc150988415333731b07c8331e4e67c1120c7214608d0d9dc4017c3d9080d" }, "downloads": -1, "filename": "sorti-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "77ea34567bdc473be6e3671598fe411e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.7", "size": 3210, "upload_time": "2019-07-05T17:51:05", "url": "https://files.pythonhosted.org/packages/e8/9f/5b994f78fa5edc4cd12a6beab43c36f8a7950247ce1537235236f34bbc29/sorti-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "86ec3461d6a1f0ab2c7e7c3c07c9f323", "sha256": "f39d9e007b0fed89f72a2e7d28597647a9a933fec0934b79ebfaa4c4b556b6f5" }, "downloads": -1, "filename": "sorti-0.0.1.tar.gz", "has_sig": false, "md5_digest": "86ec3461d6a1f0ab2c7e7c3c07c9f323", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 2635, "upload_time": "2019-07-05T17:51:07", "url": "https://files.pythonhosted.org/packages/d4/d4/b7f59107c64df6328c9fc55986467d67a34ddc2e871e362b91767750d035/sorti-0.0.1.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "a2123b125193184ced4553b7714866eb", "sha256": "12ee6f92ba6a07600aee8101087b524e353e03eb9aa9b3cfb5526ef125023fe0" }, "downloads": -1, "filename": "sorti-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a2123b125193184ced4553b7714866eb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.7", "size": 3683, "upload_time": "2019-07-05T18:37:52", "url": "https://files.pythonhosted.org/packages/c5/17/e0f105061add2dd10d04d25a3fe1c16b8d1198c2a002ea05b4b9195890d5/sorti-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf9a108097bf6c130f95d8db0c2935cb", "sha256": "e30ecd0ed677329e5fb5d0a379d1d983b9a27ec5051680b9f4a53ca5c62365b0" }, "downloads": -1, "filename": "sorti-1.0.0.tar.gz", "has_sig": false, "md5_digest": "cf9a108097bf6c130f95d8db0c2935cb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 3186, "upload_time": "2019-07-05T18:37:54", "url": "https://files.pythonhosted.org/packages/61/42/64e22e2a128a12a155003a14ca9ecc1770fe02b46a9b5bae184ab8f98134/sorti-1.0.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "ea8e059e932f883ec59b32e5712bbfac", "sha256": "b956b4f1cac2de7954c7ddc4e19622100e8b8b2344ee2408f2765014dd6bf5d8" }, "downloads": -1, "filename": "sorti-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ea8e059e932f883ec59b32e5712bbfac", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.7", "size": 3847, "upload_time": "2019-07-05T19:24:43", "url": "https://files.pythonhosted.org/packages/29/53/bc9ce2175b3efda9b54eb47f5b34e573cbd1e73d1d64223ae8f7eba494d0/sorti-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "670f53351694f337fc23cc9e9a68d2a9", "sha256": "6c7e3302335538c0e0f65be171ddd04615595b7a08f87603a0a93bae1a7be48c" }, "downloads": -1, "filename": "sorti-2.0.0.tar.gz", "has_sig": false, "md5_digest": "670f53351694f337fc23cc9e9a68d2a9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 3511, "upload_time": "2019-07-05T19:24:46", "url": "https://files.pythonhosted.org/packages/d6/03/118eaff357554e023cc2842d28e550c0e952298a6871ccda961aee859f72/sorti-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ea8e059e932f883ec59b32e5712bbfac", "sha256": "b956b4f1cac2de7954c7ddc4e19622100e8b8b2344ee2408f2765014dd6bf5d8" }, "downloads": -1, "filename": "sorti-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ea8e059e932f883ec59b32e5712bbfac", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.7", "size": 3847, "upload_time": "2019-07-05T19:24:43", "url": "https://files.pythonhosted.org/packages/29/53/bc9ce2175b3efda9b54eb47f5b34e573cbd1e73d1d64223ae8f7eba494d0/sorti-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "670f53351694f337fc23cc9e9a68d2a9", "sha256": "6c7e3302335538c0e0f65be171ddd04615595b7a08f87603a0a93bae1a7be48c" }, "downloads": -1, "filename": "sorti-2.0.0.tar.gz", "has_sig": false, "md5_digest": "670f53351694f337fc23cc9e9a68d2a9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 3511, "upload_time": "2019-07-05T19:24:46", "url": "https://files.pythonhosted.org/packages/d6/03/118eaff357554e023cc2842d28e550c0e952298a6871ccda961aee859f72/sorti-2.0.0.tar.gz" } ] }