{"id":15480507,"url":"https://github.com/zeke/summarize-python-requirements","last_synced_at":"2025-04-26T15:11:23.411Z","repository":{"id":57472252,"uuid":"415204105","full_name":"zeke/summarize-python-requirements","owner":"zeke","description":"Annotate your Python requirements.txt file with summaries of each package.","archived":false,"fork":false,"pushed_at":"2021-10-15T17:30:25.000Z","size":15,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-20T10:56:54.027Z","etag":null,"topics":["cli","dependencies","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-09T04:43:52.000Z","updated_at":"2024-11-28T16:35:04.000Z","dependencies_parsed_at":"2022-08-30T17:01:50.650Z","dependency_job_id":null,"html_url":"https://github.com/zeke/summarize-python-requirements","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeke%2Fsummarize-python-requirements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeke%2Fsummarize-python-requirements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeke%2Fsummarize-python-requirements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeke%2Fsummarize-python-requirements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeke","download_url":"https://codeload.github.com/zeke/summarize-python-requirements/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250797496,"owners_count":21488920,"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":["cli","dependencies","python"],"created_at":"2024-10-02T04:56:11.637Z","updated_at":"2025-04-25T10:26:59.603Z","avatar_url":"https://github.com/zeke.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Summarize Requirements 🐍 📜\n\nAnnotate your Python `requirements.txt` file with a short summary of each package.\n\nThis tool:\n\n- takes a Python `requirements.txt` file as input\n- fetches the summary of each package from the PyPi registry\n- outputs an equivalent requirements list with added comments summarizing each package\n\nIt can be used as a Python module or a command line script.\n\n## Example\n\nBefore:\n\n```\nblack==21.9b0\ngunicorn==20.1.0\npytz==2021.3\nrequests==2.26.0\nrope==0.20.1\nwhitenoise==5.3.0\n```\n\nAfter:\n\n```\nblack==21.9b0                            # The uncompromising code formatter.\ngunicorn==20.1.0                         # WSGI HTTP Server for UNIX\npytz==2021.3                             # World timezone definitions, modern and historical\nrequests==2.26.0                         # Python HTTP for Humans.\nrope==0.20.1                             # a python refactoring library...\nwhitenoise==5.3.0                        # Radically simplified static file serving for WSGI applications\n```\n\n## Installation\n\nNote: This is not a published package yet. For now:\n\n```sh\ngit clone https://github.com/zeke/summarize-requirements\ncd summarize-requirements\n```\n\n## Command Line Usage\n\nThe CLI reads a requirements file as input and prints summarized results as output. It does not overwrite the existing file.\n\nIf you run the command with no arguments, it'll look for `requirements.txt` in the current directory:\n\n```sh\npython index.py\n```\n\nOr you can specify a different file:\n\n```sh\npython index.py ~/path/to/your/requirements.txt \u003e new-requirements.txt\n```\n\n## Programmatic Usage\n\n```py\nfrom summarize import summarize\n\nfor line in summarize('requirements.txt'):\n    print(line)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeke%2Fsummarize-python-requirements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeke%2Fsummarize-python-requirements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeke%2Fsummarize-python-requirements/lists"}