{"id":20109199,"url":"https://github.com/pyupio/dparse","last_synced_at":"2025-04-06T00:08:42.201Z","repository":{"id":22625960,"uuid":"96868114","full_name":"pyupio/dparse","owner":"pyupio","description":"A parser for Python dependency files","archived":false,"fork":false,"pushed_at":"2023-10-24T00:33:07.000Z","size":198,"stargazers_count":59,"open_issues_count":18,"forks_count":23,"subscribers_count":11,"default_branch":"main","last_synced_at":"2024-05-01T09:39:51.516Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pyupio.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-11T08:08:47.000Z","updated_at":"2024-06-18T15:32:05.335Z","dependencies_parsed_at":"2023-02-10T06:45:15.308Z","dependency_job_id":"b0247c33-f70e-48c5-a667-19bc036e9aa2","html_url":"https://github.com/pyupio/dparse","commit_stats":{"total_commits":89,"total_committers":16,"mean_commits":5.5625,"dds":0.5617977528089888,"last_synced_commit":"47b82bae2820f0fd98d155e6ca4d7fb75453bf18"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyupio%2Fdparse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyupio%2Fdparse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyupio%2Fdparse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyupio%2Fdparse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyupio","download_url":"https://codeload.github.com/pyupio/dparse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415967,"owners_count":20935387,"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":[],"created_at":"2024-11-13T18:07:26.219Z","updated_at":"2025-04-06T00:08:42.181Z","avatar_url":"https://github.com/pyupio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=================\nDependency Parser\n=================\n\n\n.. image:: https://img.shields.io/pypi/v/dparse.svg\n        :target: https://pypi.python.org/pypi/dparse\n\n.. image:: https://img.shields.io/travis/pyupio/dparse.svg\n        :target: https://travis-ci.org/pyupio/dparse\n\n.. image:: https://codecov.io/gh/pyupio/dparse/branch/master/graph/badge.svg\n  :target: https://codecov.io/gh/pyupio/dparse\n\n\nA parser for Python dependency files\n\n\nSupported Files\n---------------\n\n+------------------+------------+-----------+\n| File             | parse      | update    |\n+==================+============+===========+\n| requirements.txt | yes        | yes       |\n+------------------+------------+-----------+\n| conda.yml        | yes        | yes       |\n+------------------+------------+-----------+\n| tox.ini          | yes        | yes       |\n+------------------+------------+-----------+\n| Pipfile          | yes        | yes       |\n+------------------+------------+-----------+\n| Pipfile.lock     | yes        | yes       |\n+------------------+------------+-----------+\n| poetry.lock      | yes        | no        |\n+------------------+------------+-----------+\n| setup.py         | no (# 2_)  | no (# 2_) |\n+------------------+------------+-----------+\n| zc.buildout      | no (# 3_)  | no (# 3_) |\n+------------------+------------+-----------+\n| setup.cfg        | no (# 4_)  | no (# 4_) |\n+------------------+------------+-----------+\n| pyproject.toml   | yes        | no        |\n+------------------+------------+-----------+\n\n.. _2: https://github.com/pyupio/dparse/issues/2\n.. _3: https://github.com/pyupio/dparse/issues/3\n.. _4: https://github.com/pyupio/dparse/issues/8\n\n************\nInstallation\n************\n\nTo install dparse, run:\n\n.. code-block:: console\n\n    $ pip install dparse\n\nIf you want to update Pipfiles, install the pipenv extra:\n\n.. code-block:: console\n\n    $ pip install dparse[pipenv]\n\nIf you want to parse conda YML files, install the conda extra:\n\n.. code-block:: console\n\n    $ pip install dparse[conda]\n\n*****\nUsage\n*****\n\nTo use dparse in a Python project::\n\n    from dparse import parse, filetypes\n\n    content = \"\"\"\n    South==1.0.1 --hash=sha256:abcdefghijklmno\n    pycrypto\u003e=2.6\n    \"\"\"\n\n    df = parse(content, file_type=filetypes.requirements_txt)\n\n    print(df.json())\n\n\n\n\n    {\n      \"file_type\": \"requirements.txt\",\n      \"content\": \"\\nSouth==1.0.1 --hash=sha256:abcdefghijklmno\\npycrypto\u003e=2.6\\n\",\n      \"path\": null,\n      \"sha\": null,\n      \"dependencies\": [\n        {\n          \"name\": \"South\",\n          \"specs\": [\n            [\n              \"==\",\n              \"1.0.1\"\n            ]\n          ],\n          \"line\": \"South==1.0.1 --hash=sha256:abcdefghijklmno\",\n          \"source\": \"pypi\",\n          \"meta\": {},\n          \"line_numbers\": null,\n          \"index_server\": null,\n          \"hashes\": [\n            \"--hash=sha256:abcdefghijklmno\"\n          ],\n          \"dependency_type\": \"requirements.txt\",\n          \"extras\": []\n        },\n        {\n          \"name\": \"pycrypto\",\n          \"specs\": [\n            [\n              \"\u003e=\",\n              \"2.6\"\n            ]\n          ],\n          \"line\": \"pycrypto\u003e=2.6\",\n          \"source\": \"pypi\",\n          \"meta\": {},\n          \"line_numbers\": null,\n          \"index_server\": null,\n          \"hashes\": [],\n          \"dependency_type\": \"requirements.txt\",\n          \"extras\": []\n        }\n      ]\n    }\n\n**********\nPython 2.7\n**********\n\nThis tool requires latest Python patch versions starting with version 3.5. We\ndid support Python 2.7 in the past but, as for other Python 3.x minor versions,\nit reached its End-Of-Life and as such we are not able to support it anymore.\n\nWe understand you might still have Python 2.7 projects running. At the same\ntime, Safety itself has a commitment to encourage developers to keep their\nsoftware up-to-date, and it would not make sense for us to work with officially\nunsupported Python versions, or even those that reached their end of life.\n\nIf you still need to use Safety with Python 2.7, please use version 0.4.1 of\nDparse available at PyPi. Alternatively, you can run Safety from a Python 3\nenvironment to check the requirements file for your Python 2.7 project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyupio%2Fdparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyupio%2Fdparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyupio%2Fdparse/lists"}