{"id":28641017,"url":"https://github.com/dotcs/pylicense","last_synced_at":"2025-06-12T20:36:40.952Z","repository":{"id":62567171,"uuid":"296835050","full_name":"dotcs/pylicense","owner":"dotcs","description":"PyLicense is a CLI tool that queries license information from  one of the following package repositories: PyPI, Anaconda or conda-forge.","archived":false,"fork":false,"pushed_at":"2020-09-19T21:24:02.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-05-07T17:18:41.135Z","etag":null,"topics":["cli","license","license-checker","license-checking","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dotcs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-19T09:42:36.000Z","updated_at":"2021-12-18T19:37:10.000Z","dependencies_parsed_at":"2022-11-03T16:30:35.876Z","dependency_job_id":null,"html_url":"https://github.com/dotcs/pylicense","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotcs%2Fpylicense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotcs%2Fpylicense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotcs%2Fpylicense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotcs%2Fpylicense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotcs","download_url":"https://codeload.github.com/dotcs/pylicense/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotcs%2Fpylicense/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258783509,"owners_count":22757286,"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":["cli","license","license-checker","license-checking","python","python3"],"created_at":"2025-06-12T20:36:39.345Z","updated_at":"2025-06-12T20:36:40.938Z","avatar_url":"https://github.com/dotcs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyLicense\n\nPyLicense is a CLI tool that queries license information from one of the\nfollowing package repositories: PyPI, Anaconda or conda-forge.\n\nPyLicense uses the online information of those repositories, e.g. the license\ninformation that is listed on `pypi.org/pypi/\u003cpackagename\u003e`, e.g. https://pypi.org/project/dcs-pylicense/.\nWhile this means that the package must not be installed on the local system,\nit also shows information about the lastest package version and not every\npossible package version.\n\n## Installation\n\nTo install the package run \n\n```console\n$ pip install dcs-pylicense\n```\n\nThe tool registers itself as `pylicense`.\nTo learn about the available arguments refer to its help:\n\n```console\n$ pylicense --help\n```\n\n## Usage\n\nPyLicense requires a file in the format of a requirements file.\nThe format is described [here](https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format).\n\nTo query license information of the packages run\n\n```console\n$ pylicense path/to/my/requirements.txt\n| name       | license   | version   |\n|:-----------|:----------|:----------|\n| black      | MIT       | 20.8b1    |\n| pylint     | GPL       | 2.6.0     |\n| pytest     | MIT       | 6.0.2     |\n| pytest-cov | MIT       | 2.10.1    |\n| sphinx     | BSD       | 3.2.1     |\n| twine      | unknown   | 3.2.1     |\n```\n\nIt is also possible to read from stdin\n```console\n$ cat /path/to/my/requirements.txt | pylicense\n```\n\nBy default the result is returned as a markdown table.\nOther format options are available, e.g. output formatting as CSV.\n\n```console\n$ pylicense --output-format csv path/to/my/requirements.txt\nname|license|version\nblack|MIT|20.8b1\npylint|GPL|2.6.0\npytest|MIT|6.0.2\npytest-cov|MIT|2.10.1\nsphinx|BSD|3.2.1\ntwine|unknown|3.2.1\n```\n\nBy default the [Python Package Index (PyPI)](https://pypi.org) is queried.\nThis can be changed with the `--repository` flag.\n\nFor example to query the anaconda package repository use the following command\n\n```console\n$ pylicense --repository anaconda path/to/my/requirements.txt\n| name       | license      | version   |\n|:-----------|:-------------|:----------|\n| black      | MIT          | 19.10b0   |\n| pylint     | GPL-2        | 2.6.0     |\n| pytest     | MIT          | 6.0.2     |\n| pytest-cov | MIT          | 2.10.1    |\n| sphinx     | BSD-2-Clause | 3.2.1     |\n| twine      | Apache  2    | 2.0.0     |\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotcs%2Fpylicense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotcs%2Fpylicense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotcs%2Fpylicense/lists"}