{"id":18132723,"url":"https://github.com/rehandalal/sort-requirements","last_synced_at":"2025-04-16T05:57:35.310Z","repository":{"id":49621122,"uuid":"181410929","full_name":"rehandalal/sort-requirements","owner":"rehandalal","description":"A simple script to sort python dependencies in requirement text files.","archived":false,"fork":false,"pushed_at":"2021-06-12T00:11:08.000Z","size":35,"stargazers_count":18,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T05:05:34.456Z","etag":null,"topics":["pip","python","python-dependencies","requirements","requirements-management"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rehandalal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-15T04:16:16.000Z","updated_at":"2024-10-27T23:07:43.000Z","dependencies_parsed_at":"2022-09-14T19:41:14.070Z","dependency_job_id":null,"html_url":"https://github.com/rehandalal/sort-requirements","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehandalal%2Fsort-requirements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehandalal%2Fsort-requirements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehandalal%2Fsort-requirements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehandalal%2Fsort-requirements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rehandalal","download_url":"https://codeload.github.com/rehandalal/sort-requirements/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094940,"owners_count":21211837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pip","python","python-dependencies","requirements","requirements-management"],"created_at":"2024-11-01T13:05:26.311Z","updated_at":"2025-04-16T05:57:35.285Z","avatar_url":"https://github.com/rehandalal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"sort-requirements\n=================\n\nA simple script to sort python dependencies in requirement text files.\n\n[![PyPI](https://img.shields.io/pypi/v/sort-requirements.svg)](https://pypi.org/project/sort-requirements/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sort-requirements.svg)](https://pypi.org/project/sort-requirements/)\n\n[![CircleCI](https://img.shields.io/circleci/project/github/rehandalal/sort-requirements.svg)](https://circleci.com/gh/rehandalal/sort-requirements)\n\n\n#### Installation\n\nInstalling this tool is easily done using [pip](https://github.com/pypa/pip). \nAssuming `pip` is installed just run the following from the command line:\n\n```\n$ pip install sort-requirements\n```\n\nThis command will download the latest version from the\n[Python Package Index](https://pypi.org/project/sort-requirements/)\nand install it to your system. More information about `pip` and pypi can be\nfound here:\n\n* [install pip](https://pip.pypa.io/en/latest/installing.html)\n* [pypi](https://pypi.python.org/pypi)\n\nAlternatively you can install from the distribution using the `setup.py`\nscript:\n\n```\n$ python setup.py install\n```\n\nYou could also install the \n[development version](https://github.com/rehandalal/sort-requirements/tarball/master#egg=sort-requirements-dev)\nby running the following:\n\n```\n$ pip install sort-requirements==dev\n```\n\nOr simple install from a clone of the \n[git repo](https://github.com/rehandalal/sort-requirements/):\n\n```\n$ git clone https://github.com/rehandalal/sort-requirements.git\n$ mkvirtualenv sort-requirements\n$ pip install --editable .\n```\n\n\n#### Usage\n\nTo use this tool simply run the following from the command line:\n\n```\n$ sort-requirements my-requirements-file.txt\n```\n\nPlease make sure to replace `my-requirements-file.txt` with the path to your\nrequirements file(s).\n\nIf you only want to get a list of files that need sorting, without actually\nwriting any changes to the files, use the `--check` flag:\n\n```\n$ sort-requirements --check my-requirements-file.txt another-file.txt\n```\n\nFor even more options use the `--help` flag:\n\n```\n$ sort-requirements --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehandalal%2Fsort-requirements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frehandalal%2Fsort-requirements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehandalal%2Fsort-requirements/lists"}