{ "info": { "author": "unique entity", "author_email": "uniq@h4x.at", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# spdx\\_license\\_list\n\nA simple tool/library for working with SPDX license definitions.\n\nThe sole purpose of this module is to make SPDX definitions available in\npython. Thus eliminating the chore of handling SPDX definitions and\nparsing them.\n\nThis is not a SPDX specification implementation. If you're looking for\nand actually standard conform implementation consult: https://spdx.org/tools\n\n## Tests and Checks\n\n[![SPDX definitions up to date?](https://gitlab.com/uniqx/spdx-license-list-update-check/badges/master/build.svg)](https://gitlab.com/uniqx/spdx-license-list-update-check/pipelines) SPDX definitions up to date? \n[![unit tests and code checks okay?](https://gitlab.com/uniqx/spdx-license-list/badges/master/build.svg)](https://gitlab.com/uniqx/spdx-license-list/pipelines) unit tests and code checks okay?\n\n## Installation\n\nThe easiest way to get `spdx_license_list` is installing it using pip:\n\n python3 -m pip install spdx-license-list\n\n## API\n\nThis library mostly comes with SPDX data as python dictionaries. All data\nis accessible as items for our main module\n\n import spdx_license_list\n\n### API for working with licenses\n\nAll license registered with SPDX are available as a huge dictionary.\nThis is where it's located:\n\n spdx_license_list.LICENSES\n\nThis dictionary uses SPDX-license IDs as key and the value is again a\ndictionary containing following items. Currently only this subset of\nvalues is available:\n\n* __isDeprecatedLicenseId__ - bool value telling you whether this license\n definition is oudated or not.\n* __isFsfLibre__ - bool value telling you whether this license is \"free\n software\" by the definition of FSF.\n* __isOsiApproved__ - bool value telling you whether this license is\n \"open source\" by the definition of OSI.\n* __licenseId__ - the SPDX license ID\n* __name__ - the full name of this license\n* __referenceNumber__ - a integer id unique for this license\n\n### API examples\n\nGet a names of licenses approved by FSF:\n\n [x['licenseId'] for x in spdx_license_list.LICENSES.values() if x['isFsfLibre']]\n\nGet all reference numbers of non deprecated license entries:\n\n [x['referenceNumber'] for x in spdx_license_list.LICENSES.values() if not x['isDeprecatedLicenseId']]\n\nGet all license IDs:\n\n spdx_license_list.LICENSES.values.keys()\n\nGet reference number for each known license ID:\n\n {k: v['referenceNumber'] for k, v in spdx_license_list.LICENSES.items()}\n\n\n## CLI tool\n\nWe've also included a CLI tool to do some simple operations. Try the help\noption (`-h`) for getting more infos.\n\n### CLI examples\n\nInstall on Debian/Ubuntu and get the list of standardized licenses approved either by FSF or OSI:\n\n sudo apt install python3-pip\n python3 -m pip install spdx-license-list\n python3 -m spdx_license_list --filter-fsf-or-osi\n\nPrint a list containing all SPDX standardized licneses approved by both FSF and OSI:\n\n python3 -m spdx_license_list print --filter-fsf --filter-osi\n\nCheck if this version on `spdx_license_list` sill is up to date, or if there's a newer release\nof SPDX license definitions available.\n\n python3 -m spdx_license_list check-version\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://gitlab.com/uniqx/spdx_license_list", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "spdx-license-list", "package_url": "https://pypi.org/project/spdx-license-list/", "platform": "", "project_url": "https://pypi.org/project/spdx-license-list/", "project_urls": { "Homepage": "https://gitlab.com/uniqx/spdx_license_list" }, "release_url": "https://pypi.org/project/spdx-license-list/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "A simple tool/library for working with SPDX license definitions.", "version": "0.2.1" }, "last_serial": 5918595, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "de84822b37bf10d349084aaeb8eedb1d", "sha256": "455c979cca655a1ea66f0e309fa97cdd4f3a79c347f330fcba38d0aa1fc894f1" }, "downloads": -1, "filename": "spdx_license_list-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "de84822b37bf10d349084aaeb8eedb1d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 25533, "upload_time": "2019-09-28T17:04:32", "url": "https://files.pythonhosted.org/packages/9f/4b/8e8ff87f7c5f0c26c9eb93cd58378093ac19c27e0b665afb42979b683b54/spdx_license_list-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0fa8029f80aeed69f2e24df69f4a1d27", "sha256": "da32c403a94ef632be50101f8ae2c6207ecea89055415a507e1ffde56c18f04c" }, "downloads": -1, "filename": "spdx_license_list-0.1.tar.gz", "has_sig": false, "md5_digest": "0fa8029f80aeed69f2e24df69f4a1d27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14331, "upload_time": "2019-09-28T17:04:38", "url": "https://files.pythonhosted.org/packages/a6/80/bcf30d330a849d7176bfd64c38d58a3c56fe5246021e89829f76c3e243a0/spdx_license_list-0.1.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "ec92f59c3ae3ffebec18558c72a18ae2", "sha256": "4247fde27bd3360c6681763a75320ea5cc09ca28e9e08ad157f09f7d93c30373" }, "downloads": -1, "filename": "spdx_license_list-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ec92f59c3ae3ffebec18558c72a18ae2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 25874, "upload_time": "2019-10-02T15:47:55", "url": "https://files.pythonhosted.org/packages/9e/63/dffdd20ca93802d466be1ccab09a2742c7dcd06ca791709d082fccc39a9b/spdx_license_list-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a09cfd459b6a71acea79e9d05b9b9c36", "sha256": "6d7055a4c6e7e4dfb24626be424e9beb8e04a30ad9fff19c8218d5ee0e2fb68d" }, "downloads": -1, "filename": "spdx_license_list-0.2.1.tar.gz", "has_sig": false, "md5_digest": "a09cfd459b6a71acea79e9d05b9b9c36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14879, "upload_time": "2019-10-02T15:47:59", "url": "https://files.pythonhosted.org/packages/15/a4/952bf5f1fe28cc473aa47e5e9a6611e90cdc8fb51a255744c3850f7e45bd/spdx_license_list-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ec92f59c3ae3ffebec18558c72a18ae2", "sha256": "4247fde27bd3360c6681763a75320ea5cc09ca28e9e08ad157f09f7d93c30373" }, "downloads": -1, "filename": "spdx_license_list-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ec92f59c3ae3ffebec18558c72a18ae2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 25874, "upload_time": "2019-10-02T15:47:55", "url": "https://files.pythonhosted.org/packages/9e/63/dffdd20ca93802d466be1ccab09a2742c7dcd06ca791709d082fccc39a9b/spdx_license_list-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a09cfd459b6a71acea79e9d05b9b9c36", "sha256": "6d7055a4c6e7e4dfb24626be424e9beb8e04a30ad9fff19c8218d5ee0e2fb68d" }, "downloads": -1, "filename": "spdx_license_list-0.2.1.tar.gz", "has_sig": false, "md5_digest": "a09cfd459b6a71acea79e9d05b9b9c36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14879, "upload_time": "2019-10-02T15:47:59", "url": "https://files.pythonhosted.org/packages/15/a4/952bf5f1fe28cc473aa47e5e9a6611e90cdc8fb51a255744c3850f7e45bd/spdx_license_list-0.2.1.tar.gz" } ] }