{"id":20325781,"url":"https://github.com/aboutcode-org/python-inspector","last_synced_at":"2025-04-05T16:04:20.426Z","repository":{"id":37088486,"uuid":"491646615","full_name":"aboutcode-org/python-inspector","owner":"aboutcode-org","description":"Inspect Python code and PyPI package manifests. Resolve Python dependencies.","archived":false,"fork":false,"pushed_at":"2025-03-24T11:45:23.000Z","size":4056,"stargazers_count":21,"open_issues_count":72,"forks_count":24,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-29T15:04:07.593Z","etag":null,"topics":["dependency-resolver","pip","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aboutcode-org.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.rst","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-12T19:42:57.000Z","updated_at":"2025-03-24T11:44:55.000Z","dependencies_parsed_at":"2023-02-18T18:01:26.310Z","dependency_job_id":"60827bf9-6717-4112-9def-e81ddb30500a","html_url":"https://github.com/aboutcode-org/python-inspector","commit_stats":{"total_commits":447,"total_committers":36,"mean_commits":"12.416666666666666","dds":0.7114093959731543,"last_synced_commit":"869c4124ac0bbc7ee333886c9f9dd1a7fe92db2a"},"previous_names":["aboutcode-org/python-inspector"],"tags_count":31,"template":false,"template_full_name":"aboutcode-org/skeleton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Fpython-inspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Fpython-inspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Fpython-inspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Fpython-inspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aboutcode-org","download_url":"https://codeload.github.com/aboutcode-org/python-inspector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361614,"owners_count":20926642,"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":["dependency-resolver","pip","python"],"created_at":"2024-11-14T19:41:38.888Z","updated_at":"2025-04-05T16:04:20.407Z","avatar_url":"https://github.com/aboutcode-org.png","language":"Python","readme":"python-inspector - inspect Python packages dependencies and metadata\n=====================================================================\n\n\nCopyright (c) nexB Inc. and others.\nSPDX-License-Identifier: Apache-2.0\nHomepage: https://github.com/aboutcode-org/python-inspector and https://www.aboutcode.org/\n\n\n``python-inspector`` is a collection of utilities to:\n\n- resolve PyPI packages dependencies\n\n- parse various requirements.txt files and setup.py files as input\n  for resolving dependencies.\n\n- parse additionally various manifests and packages files such as\n  Pipfile, pyproject.toml, poetry.lock and setup.cfg and legacy and\n  current metadata file formats for eggs, wheels and sdist. These\n  have not been wired with the command line yet.\n\n- query PyPI JSON and simple APIs for package information\n\nIt grew out of ScanCode toolkit to find and analyze PyPI archives and\ninstalled Python packages and their files.\n\nThe goal of python-inspector is to be a comprehensive library\nthat can handle every style of Python package layouts, manifests and lockfiles.\n\n\nTesting\n--------\n\n- Run the tests with::\n\n    pytest -vvs\n\n- These are live tests to regenrate the tests with updated data run::\n\n      PYINSP_REGEN_TEST_FIXTURES=yes pytest -vvs\n\nUsage\n--------\n\n- Install with pip::\n\n    pip install git+https://github.com/aboutcode-org/python-inspector\n\n- Run the command line utility with::\n\n    python-inspector --help\n\n\n\nIts companion libraries are:\n\n- ``pip-requirements-parser``, a mostly correct pip requirements parsing\n  library extracted from pip.\n\n- ``pkginfo2``, a safer fork of pkginfo to parse various installed and extracted\n  package layouts and their metadata files.\n\n- ``dparse2``, a safer fork of dparse to parse various package manifests\n\n- ``resolvelib``, the library used by pip for dependency resolution\n\n- ``packaging``, the official Python packaging utility library to process\n  versions, specifiers, markers  and other packaging data formats.\n\n- ``importlib_metadata``, the official Python utility library to process\n  installed site-packages and their metadata formats.\n\n- ``packageurl-python`` to use Package URL to reference Python packages\n\n\n\nAcknowledgements, Funding, Support and Sponsoring\n--------------------------------------------------------\n\nThis project is funded, supported and sponsored by:\n\n- Generous support and contributions from users like you!\n- the European Commission NGI programme\n- the NLnet Foundation \n- the Swiss State Secretariat for Education, Research and Innovation (SERI)\n- Google, including the Google Summer of Code and the Google Seasons of Doc programmes\n- Mercedes-Benz Group\n- Microsoft and Microsoft Azure\n- AboutCode ASBL\n- nexB Inc. \n\n\n\n|europa|   |dgconnect| \n\n|ngi|   |nlnet|   \n\n|aboutcode|  |nexb|\n\n\nThis project was funded through the NGI0 Discovery Fund, a fund established by NLnet with financial\nsupport from the European Commission's Next Generation Internet programme, under the aegis of DG\nCommunications Networks, Content and Technology under grant agreement No 825322.\n\n|ngidiscovery| https://nlnet.nl/project/vulnerabilitydatabase/\n\n\nThis project was funded through the NGI0 Core Fund, a fund established by NLnet with financial\nsupport from the European Commission's Next Generation Internet programme, under the aegis of DG\nCommunications Networks, Content and Technology under grant agreement No 101092990.\n\n|ngizerocore| https://nlnet.nl/project/Back2source-next/\n\n\n\n.. |nlnet| image:: https://nlnet.nl/logo/banner.png\n    :target: https://nlnet.nl\n    :height: 50\n    :alt: NLnet foundation logo\n\n.. |ngi| image:: https://ngi.eu/wp-content/uploads/thegem-logos/logo_8269bc6efcf731d34b6385775d76511d_1x.png\n    :target: https://ngi.eu35\n    :height: 50\n    :alt: NGI logo\n\n.. |nexb| image:: https://nexb.com/wp-content/uploads/2022/04/nexB.svg\n    :target: https://nexb.com\n    :height: 30\n    :alt: nexB logo\n\n.. |europa| image:: https://ngi.eu/wp-content/uploads/sites/77/2017/10/bandiera_stelle.png\n    :target: http://ec.europa.eu/index_en.htm\n    :height: 40\n    :alt: Europa logo\n\n.. |aboutcode| image:: https://aboutcode.org/wp-content/uploads/2023/10/AboutCode.svg\n    :target: https://aboutcode.org/\n    :height: 30\n    :alt: AboutCode logo\n\n.. |swiss| image:: https://www.sbfi.admin.ch/sbfi/en/_jcr_content/logo/image.imagespooler.png/1493119032540/logo.png\n    :target: https://www.sbfi.admin.ch/sbfi/en/home/seri/seri.html\n    :height: 40\n    :alt: Swiss logo\n\n.. |dgconnect| image:: https://commission.europa.eu/themes/contrib/oe_theme/dist/ec/images/logo/positive/logo-ec--en.svg\n    :target: https://commission.europa.eu/about-european-commission/departments-and-executive-agencies/communications-networks-content-and-technology_en\n    :height: 40\n    :alt: EC DG Connect logo\n\n.. |ngizerocore| image:: https://nlnet.nl/image/logos/NGI0_tag.svg\n    :target: https://nlnet.nl/core\n    :height: 40\n    :alt: NGI Zero Core Logo\n\n.. |ngizerocommons| image:: https://nlnet.nl/image/logos/NGI0_tag.svg\n    :target: https://nlnet.nl/commonsfund/\n    :height: 40\n    :alt: NGI Zero Commons Logo\n\n.. |ngizeropet| image:: https://nlnet.nl/image/logos/NGI0PET_tag.svg\n    :target: https://nlnet.nl/PET\n    :height: 40\n    :alt: NGI Zero PET logo\n\n.. |ngizeroentrust| image:: https://nlnet.nl/image/logos/NGI0Entrust_tag.svg\n    :target: https://nlnet.nl/entrust\n    :height: 38\n    :alt: NGI Zero Entrust logo\n\n.. |ngiassure| image:: https://nlnet.nl/image/logos/NGIAssure_tag.svg\n    :target: https://nlnet.nl/image/logos/NGIAssure_tag.svg\n    :height: 32\n    :alt: NGI Assure logo\n\n.. |ngidiscovery| image:: https://nlnet.nl/image/logos/NGI0Discovery_tag.svg\n    :target: https://nlnet.nl/discovery/\n    :height: 40\n    :alt: NGI Discovery logo\n\n\n\n\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutcode-org%2Fpython-inspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faboutcode-org%2Fpython-inspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutcode-org%2Fpython-inspector/lists"}