{ "info": { "author": "Abdulelah Bin Mahfoodh", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Topic :: System :: System Shells", "Topic :: Utilities" ], "description": "\n# dep_license\n\n**dep_lic**: a simple utility to report licenses information for dependencies in use by a Python project. It supports parsing contents from `requirements.txt` and `Pipfile` files from the project directory or its GitHub repo. \n\n### Installation\n\n```\n$ pip install dep_license\n```\n\n### Command-Line Options\n\n```\n$ deplic --help\nusage: deplic [-h] [-p PROCESSES] [-f FORMAT] [-o OUTPUT] [-d] [-n NAME]\n PROJECT\n\npositional arguments:\n PROJECT path or URL to the project repo\n\noptional arguments:\n -h, --help show this help message and exit\n -p PROCESSES, --processes PROCESSES\n number of processes to run in parallel (default: MAX)\n -f FORMAT, --format FORMAT\n define how result is formatted (default: github)\n -o OUTPUT, --output OUTPUT\n path for output file (default: None)\n -d, --dev include dev packages from Pipfile (default: False)\n -n NAME, --name NAME name for pip-requirements file (default: None)\n```\n\n### Usage\n\nReport a list of dependency licenses used in a local project: \n```\n$ deplic /path/to/python/project \nTotal number of dependencies: 3\nRunning with 3 processes...\nlicenses:\n\n| Name | Meta | Classifier |\n|------------|--------|--------------------------------------------------|\n| pandas | BSD | |\n| matplotlib | PSF | OSI Approved::Python Software Foundation License |\n| numpy | BSD | OSI Approved |\n```\n\nSpecify the file to be parsed:\n\n```\n$ deplic /path/to/python/project/requirements.txt \nTotal number of dependencies: 1\nRunning with 1 processes...\nlicenses:\n\n| Name | Meta | Classifier |\n|--------|--------|--------------|\n| numpy | BSD | OSI Approved |\n\n```\n\nSupport for Pipfile:\n```\n$ deplic /path/to/python/project/Pipfile\nTotal number of dependencies: 3\nRunning with 3 processes...\nlicenses:\n\n| Name | Meta | Classifier |\n|------------|--------|--------------------------------------------------|\n| numpy | BSD | OSI Approved |\n| pandas | BSD | |\n| matplotlib | PSF | OSI Approved::Python Software Foundation License |\n```\n\nFormat and store output as JSON file:\n```\ndeplic /path/to/python/project -f json -o dep-licenses.json\nTotal number of dependencies: 3\nRunning with 3 processes...\nlicenses:\n\n[\n {\n \"Name\": \"matplotlib\",\n \"Meta\": \"PSF\",\n \"Classifier\": \"OSI Approved::Python Software Foundation License\"\n },\n {\n \"Name\": \"pandas\",\n \"Meta\": \"BSD\",\n \"Classifier\": \"\"\n },\n {\n \"Name\": \"numpy\",\n \"Meta\": \"BSD\",\n \"Classifier\": \"OSI Approved\"\n }\n]\n```\n\nGet the list dev-packages from the project's GitHub repo:\n```\n$ deplic https://github.com/kennethreitz/requests -p 16 -d -f md\nTotal number of dependencies: 16\nRunning with 16 processes...\nlicenses:\n\nName Meta Classifier\n--------------- ------------------------------------------------------------ -------------------------------------\npytest MIT license OSI Approved::MIT License\ncodecov http://www.apache.org/licenses/LICENSE-2.0 OSI Approved::Apache Software License\npytest-mock MIT OSI Approved::MIT License\nsphinx BSD OSI Approved::BSD License\ntox MIT OSI Approved::MIT License\npytest-httpbin MIT OSI Approved::MIT License\ndocutils public domain, Python, 2-Clause BSD, GPL 3 (see COPYING.txt) Public Domain\npytest-cov MIT OSI Approved::BSD License\npytest-xdist MIT OSI Approved::MIT License\npysocks BSD\nhttpbin MIT OSI Approved::MIT License\nalabaster OSI Approved::BSD License\nreadme-renderer Apache License, Version 2.0 OSI Approved::Apache Software License\ndetox MIT OSI Approved::MIT License\n\n```\n\nSpecify which requirements file to parse:\n```\n$ deplic https://github.com/pandas-dev/pandas -n requirements-dev.txt -f csv -p 16 -o pandas_dev.csv\n```\n\n### Output Formats:\n\nSupported table formats are (thanks to python-tabulate package):\n\n- \"plain\"\n- \"simple\"\n- \"github\"\n- \"grid\"\n- \"fancy_grid\"\n- \"pipe\"\n- \"orgtbl\"\n- \"jira\"\n- \"presto\"\n- \"psql\"\n- \"rst\"\n- \"mediawiki\"\n- \"moinmoin\"\n- \"youtrack\"\n- \"html\"\n- \"latex\"\n- \"latex_raw\"\n- \"latex_booktabs\"\n- \"textile\"\n\n\n\n", "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/abduhbm/dep-license", "keywords": "license check dependency package report", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "dep-license", "package_url": "https://pypi.org/project/dep-license/", "platform": "", "project_url": "https://pypi.org/project/dep-license/", "project_urls": { "Homepage": "https://github.com/abduhbm/dep-license" }, "release_url": "https://pypi.org/project/dep-license/0.1/", "requires_dist": [ "tabulate", "requests" ], "requires_python": "", "summary": "Report licenses information for dependencies in use by a Python project", "version": "0.1" }, "last_serial": 5314424, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "324d5022092703e447f82cb0d5b3b5df", "sha256": "4423862441fd9286e9caf0f983cb01ed41391fae547bbe1f3464e90083de9ec9" }, "downloads": -1, "filename": "dep_license-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "324d5022092703e447f82cb0d5b3b5df", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6640, "upload_time": "2019-05-24T20:37:42", "url": "https://files.pythonhosted.org/packages/75/95/d260621ca284aba696a0a6d3945fc3c5107c42597b321beff004519e25e8/dep_license-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b47a32b0312ef940e415b3c568d046d4", "sha256": "845cfa19f7fe34ddb7bcd6da0ce32ae292f9c91feab4038b1e9065e784764caf" }, "downloads": -1, "filename": "dep_license-0.1.tar.gz", "has_sig": false, "md5_digest": "b47a32b0312ef940e415b3c568d046d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5763, "upload_time": "2019-05-24T20:37:44", "url": "https://files.pythonhosted.org/packages/6b/ad/36e2d7f6e73225099e78f6f8093793bcd1cb319d18ed544483f31a4a5031/dep_license-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "324d5022092703e447f82cb0d5b3b5df", "sha256": "4423862441fd9286e9caf0f983cb01ed41391fae547bbe1f3464e90083de9ec9" }, "downloads": -1, "filename": "dep_license-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "324d5022092703e447f82cb0d5b3b5df", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6640, "upload_time": "2019-05-24T20:37:42", "url": "https://files.pythonhosted.org/packages/75/95/d260621ca284aba696a0a6d3945fc3c5107c42597b321beff004519e25e8/dep_license-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b47a32b0312ef940e415b3c568d046d4", "sha256": "845cfa19f7fe34ddb7bcd6da0ce32ae292f9c91feab4038b1e9065e784764caf" }, "downloads": -1, "filename": "dep_license-0.1.tar.gz", "has_sig": false, "md5_digest": "b47a32b0312ef940e415b3c568d046d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5763, "upload_time": "2019-05-24T20:37:44", "url": "https://files.pythonhosted.org/packages/6b/ad/36e2d7f6e73225099e78f6f8093793bcd1cb319d18ed544483f31a4a5031/dep_license-0.1.tar.gz" } ] }