{"id":21869998,"url":"https://github.com/dephell/dephell_licenses","last_synced_at":"2025-04-14T23:42:46.902Z","repository":{"id":89752051,"uuid":"177639990","full_name":"dephell/dephell_licenses","owner":"dephell","description":"Get info about OSS licenses","archived":false,"fork":false,"pushed_at":"2020-05-15T12:47:12.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-26T21:21:11.423Z","etag":null,"topics":["dephell","license","license-management","licenses","pypi","spdx","spdx-license","spdx-licenses"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dephell.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-25T18:13:21.000Z","updated_at":"2024-06-21T16:37:16.535Z","dependencies_parsed_at":"2023-04-29T14:16:53.763Z","dependency_job_id":null,"html_url":"https://github.com/dephell/dephell_licenses","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dephell%2Fdephell_licenses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dephell%2Fdephell_licenses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dephell%2Fdephell_licenses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dephell%2Fdephell_licenses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dephell","download_url":"https://codeload.github.com/dephell/dephell_licenses/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981259,"owners_count":21193143,"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":["dephell","license","license-management","licenses","pypi","spdx","spdx-license","spdx-licenses"],"created_at":"2024-11-28T06:09:53.027Z","updated_at":"2025-04-14T23:42:46.858Z","avatar_url":"https://github.com/dephell.png","language":"Python","readme":"# DepHell Licenses\n\n[![travis](https://travis-ci.org/dephell/dephell_licenses.svg?branch=master)](https://travis-ci.org/dephell/dephell_licenses)\n[![appveyor](https://ci.appveyor.com/api/projects/status/github/dephell/dephell_licenses?svg=true)](https://ci.appveyor.com/project/orsinium/dephell-licenses)\n[![MIT License](https://img.shields.io/pypi/l/dephell-licenses.svg)](https://github.com/dephell/dephell_licenses/blob/master/LICENSE)\n\nManage OSS licenses: retrieve information, generate.\n\n## Installation\n\nInstall from [PyPI](https://pypi.org/project/dephell-licenses/):\n\n```bash\npython3 -m pip install --user dephell_licenses\n```\n\n## Usage\n\n```python\nfrom dephell_licenses import licenses\n\n# ways to get a license:\nlicense = licenses.get_by_id('MIT')\nlicense = licenses.get_by_name('MIT License')\nlicense = licenses.get_by_classifier('License :: OSI Approved :: MIT License')\n\n# license object\nlicense\n# License(id='MIT', classifier='License :: OSI Approved :: MIT License', name='MIT License', approved=True, deprecated=False, links=['https://opensource.org/licenses/MIT'], url='http://spdx.org/licenses/MIT.json')\n\n# generate license\nlicense.make_text(copyright='2019 Gram')\n# 'MIT License\\n\\nCopyright (c) 2019 Gram\\n\\nPermission is hereby granted ...'\n```\n\n## Most popular licenses\n\n```bash\ngo run stat.go | grep \"License :: \" | perl -F\"\\|\" -lane 'print $F[0] if $F[1]\u003e100' | sort\n```\n\nThere is the full list of the license classifiers with more than 100 projects that uses it:\n\n```\nLicense :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication\nLicense :: DFSG approved\nLicense :: Free for non-commercial use\nLicense :: Freely Distributable\nLicense :: Freeware\nLicense :: OSI Approved\nLicense :: OSI Approved :: Apache Software License\nLicense :: OSI Approved :: BSD License\nLicense :: OSI Approved :: GNU Affero General Public License v3\nLicense :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)\nLicense :: OSI Approved :: GNU General Public License (GPL)\nLicense :: OSI Approved :: GNU General Public License v2 (GPLv2)\nLicense :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)\nLicense :: OSI Approved :: GNU General Public License v3 (GPLv3)\nLicense :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)\nLicense :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)\nLicense :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)\nLicense :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)\nLicense :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)\nLicense :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)\nLicense :: OSI Approved :: ISC License (ISCL)\nLicense :: OSI Approved :: MIT License\nLicense :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)\nLicense :: OSI Approved :: Python Software Foundation License\nLicense :: OSI Approved :: Zope Public License\nLicense :: Other/Proprietary License\nLicense :: Public Domain\nLicense :: Repoze Public License\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdephell%2Fdephell_licenses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdephell%2Fdephell_licenses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdephell%2Fdephell_licenses/lists"}