{ "info": { "author": "Stuart Campbell", "author_email": "stuart@harto.org", "bugtrack_url": null, "classifiers": [], "description": "pkgdeps\n=======\n\nExplore dependencies of a Python package by parsing its imports.\n\nThis might be useful for:\n\n- seeing how modules within a package depend on each other\n- seeing which built-in libraries are relied upon\n- analysis of 3rd-party dependencies\n- etc.\n\n\nExamples\n--------\n\nExplore dependencies of this project::\n\n $ pkgdeps /path/to/pkgdeps\n pkgdeps\n - argparse.ArgumentParser\n - ast\n - collections.defaultdict\n - functools.reduce\n - os\n - os.path\n - sys\n\n\nLimitations\n-----------\n\n- Only tested with Python 3 against Python 3 packages.\n- Doesn't handle conditional imports; all conditional branches are inspected.\n- Outputs imported module members: ``from os.path import join`` creates a\n dependency on ``os.path.join``, but we probably only want ``os.path`` for e.g.\n ``tsort`` output. However, internal dependencies are coarsened to the module\n level.\n\n\nInstallation\n------------\n\n::\n\n $ pip install pkgdeps\n\n\nUsage\n-----\n\nVarious options are available to filter and format the output::\n\n $ pkgdeps -h\n usage: pkgdeps [-h] [-n ] [-m ] [-e | -o ]\n [-f ]\n \n\n Explore dependencies of a package by parsing its imports.\n\n positional arguments:\n path to package root\n\n optional arguments:\n -h, --help show this help message and exit\n -n , --package-module-name-segments \n truncate module names of inspected package to given\n number of segments (and consolidate imports)\n -m , --dependency-module-name-segments \n truncate module names of dependencies to given number\n of segments (and deduplicate)\n -e , --exclude \n exclude various kinds of dependencies from output\n (builtin, 3rd-party, internal)\n -o , --only \n include only dependencies of the given type (builtin,\n 3rd-party, internal)\n -f , --format \n graph output format (tree, tsort)\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/harto/pkgdeps", "keywords": "python package dependency", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pkgdeps", "package_url": "https://pypi.org/project/pkgdeps/", "platform": "", "project_url": "https://pypi.org/project/pkgdeps/", "project_urls": { "Homepage": "https://github.com/harto/pkgdeps" }, "release_url": "https://pypi.org/project/pkgdeps/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "Explore dependencies of a Python package by parsing its imports.", "version": "0.0.3" }, "last_serial": 3402433, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "e332708808bdbe7992c59d5956d1bba1", "sha256": "522b2f6f1c353dc72254cf5e70533f5abf7fbe7ffdbe69c16c79b56fa0144ffb" }, "downloads": -1, "filename": "pkgdeps-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e332708808bdbe7992c59d5956d1bba1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6718, "upload_time": "2017-12-08T21:13:32", "url": "https://files.pythonhosted.org/packages/ff/e4/8633bd2e6ca6bd0873157117868ac775f8860faf7efd2740fffac5fbbe3f/pkgdeps-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5ca5836714fafc055743730a3b7a5f71", "sha256": "ad134729d931a87c9efdc085b0f1da460689c987a6d7387c367d84cad0131c9f" }, "downloads": -1, "filename": "pkgdeps-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5ca5836714fafc055743730a3b7a5f71", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6714, "upload_time": "2017-12-08T21:13:34", "url": "https://files.pythonhosted.org/packages/1e/21/5a452485f99352fee756c36e2ffaf6e74bc57d4fba86af42e3836ed0d2d2/pkgdeps-0.0.1-py3-none-any.whl" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "7b5ff1439078cc6d0cd00fdf7ec91f73", "sha256": "7b53b3d53f507deab40900ea308a18cb5fab05fff2660cc3de92e18fe5cce642" }, "downloads": -1, "filename": "pkgdeps-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7b5ff1439078cc6d0cd00fdf7ec91f73", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7386, "upload_time": "2017-12-09T00:14:09", "url": "https://files.pythonhosted.org/packages/16/5a/da1be10fc03f7581045586b10832ebc6f113163b49367e937aaf612d5d4b/pkgdeps-0.0.2-py2.py3-none-any.whl" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "6d907327c99b15bcbcfedfba822f786c", "sha256": "e34e733bb5a2c174ab395f3884ec314ad6906c399c1f6950e78b8ac1a4cae822" }, "downloads": -1, "filename": "pkgdeps-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6d907327c99b15bcbcfedfba822f786c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7404, "upload_time": "2017-12-09T00:17:03", "url": "https://files.pythonhosted.org/packages/bf/ce/aae41edbf78d7de24d551bdf94a5bc6cbc925a887d01c3da220aeab6d3eb/pkgdeps-0.0.3-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6d907327c99b15bcbcfedfba822f786c", "sha256": "e34e733bb5a2c174ab395f3884ec314ad6906c399c1f6950e78b8ac1a4cae822" }, "downloads": -1, "filename": "pkgdeps-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6d907327c99b15bcbcfedfba822f786c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7404, "upload_time": "2017-12-09T00:17:03", "url": "https://files.pythonhosted.org/packages/bf/ce/aae41edbf78d7de24d551bdf94a5bc6cbc925a887d01c3da220aeab6d3eb/pkgdeps-0.0.3-py2.py3-none-any.whl" } ] }