{"id":13825292,"url":"https://github.com/madpah/requirements-parser","last_synced_at":"2025-12-12T01:04:59.228Z","repository":{"id":5629359,"uuid":"6837462","full_name":"madpah/requirements-parser","owner":"madpah","description":"A Pip requirements file parser.","archived":false,"fork":false,"pushed_at":"2024-10-24T13:38:44.000Z","size":316,"stargazers_count":132,"open_issues_count":22,"forks_count":42,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T06:07:36.514Z","etag":null,"topics":["pip"],"latest_commit_sha":null,"homepage":"https://requirements-parser.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madpah.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-11-24T07:39:03.000Z","updated_at":"2025-02-25T03:11:06.000Z","dependencies_parsed_at":"2024-01-13T16:25:11.031Z","dependency_job_id":"596af93a-a4c3-4132-8d5e-2e64fa58fe4d","html_url":"https://github.com/madpah/requirements-parser","commit_stats":{"total_commits":121,"total_committers":15,"mean_commits":8.066666666666666,"dds":0.5123966942148761,"last_synced_commit":"1ce923617147dd984c280d56cb1f02fcd3589a7c"},"previous_names":["davidfischer/requirements-parser"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madpah%2Frequirements-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madpah%2Frequirements-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madpah%2Frequirements-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madpah%2Frequirements-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madpah","download_url":"https://codeload.github.com/madpah/requirements-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830397,"owners_count":21168272,"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"],"created_at":"2024-08-04T09:01:17.943Z","updated_at":"2025-12-12T01:04:59.169Z","avatar_url":"https://github.com/madpah.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Requirements Parser\n\n[![shield_pypi-version]][link_pypi]\n[![shield_rtfd]][link_rtfd]\n[![shield_gh-workflow-test]][link_gh-workflow-test]\n[![shield_license]][license_file]\n\n---\n\nThis is a small Python module for parsing [Pip](http://www.pip-installer.org/) requirement files.\n\nThe goal is to parse everything in the [Pip requirement file format](https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format) spec.\n\n## Installation\n\n    pip install requirements-parser\n\nor\n\n    poetry add requirements-parser\n\n## Examples\n\n`requirements-parser` can parse a file-like object or a text string.\n\n``` {.python}\n\u003e\u003e\u003e import requirements\n\u003e\u003e\u003e with open('requirements.txt', 'r') as fd:\n...     for req in requirements.parse(fd):\n...         print(req.name, req.specs)\nDjango [('\u003e=', '1.11'), ('\u003c', '1.12')]\nsix [('==', '1.10.0')]\n```\n\nIt can handle most (if not all) of the options in requirement files that do not involve traversing the local filesystem. These include:\n\n-   editables (`-e git+https://github.com/toastdriven/pyelasticsearch.git]{.title-ref}`)\n-   version control URIs\n-   egg hashes and subdirectories (`[\\#egg=django-haystack\u0026subdirectory=setup]{.title-ref}`)\n-   extras ([DocParser\\[PDF\\]]{.title-ref})\n-   URLs\n\n## Documentation\n\nView the documentation [here][link_rtfd].\n\n## Python Support\n\nWe endeavour to support all functionality for all [current actively supported Python versions](https://www.python.org/downloads/).\nHowever, some features may not be possible/present in older Python versions due to their lack of support.\n\n## Changelog\n\nSee our [CHANGELOG][chaneglog_file].\n\n## Contributing\n\nFeel free to open issues, bugreports or pull requests.  \nSee the [CONTRIBUTING][contributing_file] file for details.\n\n## Copyright \u0026 License\n\n`requirements-parser` was originally written by @davidfischer and is now maintained by @madpah. See [Authors][authors_file] for full details. \n\nPermission to modify and redistribute is granted under the terms of the Apache 2.0 license.\n\nSee the [LICENSE][license_file] file for the full license.\n\n[authors_file]: https://github.com/madpah/requirements-parser/blob/main/AUTHORS.md\n[license_file]: https://github.com/madpah/requirements-parser/blob/main/LICENSE\n[chaneglog_file]: https://github.com/madpah/requirements-parser/blob/main/CHANGELOG.md\n[contributing_file]: https://github.com/madpah/requirements-parser/blob/main/CONTRIBUTING.md\n\n[shield_gh-workflow-test]: https://img.shields.io/github/actions/workflow/status/madpah/requirements-parser/poetry.yml?branch=main\u0026logo=GitHub\u0026logoColor=white \"build\"\n[shield_pypi-version]: https://img.shields.io/pypi/v/requirements-parser?logo=pypi\u0026logoColor=white\u0026label=PyPI \"PyPI\"\n[shield_rtfd]: https://img.shields.io/readthedocs/requirements-parser?logo=readthedocs\u0026logoColor=white \"Read the Docs\"\n[shield_license]: https://img.shields.io/github/license/madpah/requirements-parser?logo=open%20source%20initiative\u0026logoColor=white \"license\"\n\n[link_gh-workflow-test]: https://github.com/madpah/requirements-parser/actions/workflows/poetry.yml?query=branch%3Amain\n[link_pypi]: https://pypi.org/project/requirements-parser/\n[link_rtfd]: https://requirements-parser.readthedocs.io/en/latest/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadpah%2Frequirements-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadpah%2Frequirements-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadpah%2Frequirements-parser/lists"}