{ "info": { "author": "Arthur Noel", "author_email": "arthur@0compute.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: POSIX", "Programming Language :: Python :: 3", "Topic :: Software Development :: Build Tools", "Topic :: System :: Archiving :: Packaging", "Topic :: System :: Software Distribution" ], "description": "# Distinfo\n\n[![Build Status](https://travis-ci.org/0compute/distinfo.svg?branch=master)](https://travis-ci.org/0compute/distinfo)\n[![Quality](https://api.codacy.com/project/badge/Grade/a241056468c94640a10cceebbd86a8a5)](https://www.codacy.com/app/0compute/distinfo)\n[![Coverage](https://api.codacy.com/project/badge/Coverage/a241056468c94640a10cceebbd86a8a5)](https://www.codacy.com/app/0compute/distinfo)\n\n`distinfo` is a tool for extracting metadata, including full dependencies, from\nPython source distributions.\n\n## Usage\n\n### CLI\n\nDump json metadata to stdout:\n\n $ distinfo /path/to/package/source\n\n### Library\n\nPrint dependencies and metadata:\n\n``` python\n>>> from distinfo import Distribution, dump\n>>>\n>>> dist = Distribution(\"/path/to/package/source\")\n>>> dump(dist.requires)\n{\n \"build\": [\n \"setuptools-scm\"\n ],\n \"dev\": [\n \"pycmd\",\n ],\n \"run\": [\n \"click\",\n \"requests\",\n ],\n \"test\": [\n \"pytest\",\n ]\n}\n>>> dump(dist.metadata)\n{\n \"author\": \"A N Other\",\n \"author_email\": \"a@example.org\",\n \"extensions\": {\n \"distinfo\": {\n \"imports\": {\n \"distinfo\": [\n \"click\",\n \"requests\"\n ],\n \"tests\": [\n \"pytest\",\n ]\n },\n \"tests\": [\n \"tests\",\n ],\n }\n },\n \"license\": \"GPL-3.0-or-later\",\n \"metadata_version\": \"2.1\",\n \"name\": \"example\",\n \"provides_extra\": [\n \"build\",\n \"dev\",\n \"test\"\n ],\n \"requires_dist\": [\n \"click\",\n \"pycmd; extra == 'dev'\",\n \"pytest; extra == 'test'\",\n \"requests\"\n \"setuptools-scm; extra == 'build'\",\n ],\n \"summary\": \"Example package\",\n \"version\": \"0.0.0\"\n}\n```\n\n## Specifications\n\nhttps://packaging.python.org/specifications/\n\n### Metadata\n\n* [PEP 241 - Metadata for Python Software Packages 1.0](https://www.python.org/dev/peps/pep-0241/)\n* [PEP 314 - Metadata for Python Software Packages 1.1](https://www.python.org/dev/peps/pep-0314/)\n* [PEP 345 - Metadata for Python Software Packages 1.2](https://www.python.org/dev/peps/pep-0345/)\n* [PEP 426 - Metadata for Python Software Packages 2.0](https://www.python.org/dev/peps/pep-0426/)\n* [PEP 566 - Metadata for Python Software Packages 2.1](https://www.python.org/dev/peps/pep-0566/)\n* [PEP 459 -- Standard Metadata Extensions for Python Software Packages](https://www.python.org/dev/peps/pep-0459/)\n\n### Dependencies\n\n* [PEP 440 - Version Identification and Dependency Specification](https://www.python.org/dev/peps/pep-0440/)\n* [PEP 508 - Dependency specification for Python Software Packages](https://www.python.org/dev/peps/pep-0508/)\n* [PEP 518 - Specifying Minimum Build System Requirements for Python Projects](https://www.python.org/dev/peps/pep-0518/)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/0compute/distinfo", "keywords": "packaging,metadata,sdist", "license": "GPL-3.0-or-later", "maintainer": "", "maintainer_email": "", "name": "distinfo", "package_url": "https://pypi.org/project/distinfo/", "platform": "", "project_url": "https://pypi.org/project/distinfo/", "project_urls": { "Homepage": "https://github.com/0compute/distinfo" }, "release_url": "https://pypi.org/project/distinfo/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Extract metadata from Python source distributions", "version": "0.2.0" }, "last_serial": 4087270, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d1372e98dbc7b6d61e6894f07baa6b97", "sha256": "6a39abcd0e65c559c88f3cb5cfd0fa5291a2da865cebf799970a4bdc98b008bc" }, "downloads": -1, "filename": "distinfo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d1372e98dbc7b6d61e6894f07baa6b97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25963, "upload_time": "2018-07-17T18:56:52", "url": "https://files.pythonhosted.org/packages/4e/04/2bebb4bf6769d2b65582d6542c212b7dea68f976dc324c1f23898b1bce7f/distinfo-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "a8f26467c07e1983a1241280396ceb63", "sha256": "115c3df7196989f7f7276179a3090f8a00040d350eb4d0cb8cc8d30fc91be1fa" }, "downloads": -1, "filename": "distinfo-0.2.0.tar.gz", "has_sig": false, "md5_digest": "a8f26467c07e1983a1241280396ceb63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28711, "upload_time": "2018-07-20T22:34:05", "url": "https://files.pythonhosted.org/packages/9a/ee/fd85e003b281ac6570db918fcde3322d1942c66594c1a876821071e1ae69/distinfo-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a8f26467c07e1983a1241280396ceb63", "sha256": "115c3df7196989f7f7276179a3090f8a00040d350eb4d0cb8cc8d30fc91be1fa" }, "downloads": -1, "filename": "distinfo-0.2.0.tar.gz", "has_sig": false, "md5_digest": "a8f26467c07e1983a1241280396ceb63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28711, "upload_time": "2018-07-20T22:34:05", "url": "https://files.pythonhosted.org/packages/9a/ee/fd85e003b281ac6570db918fcde3322d1942c66594c1a876821071e1ae69/distinfo-0.2.0.tar.gz" } ] }