Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonathanstowe/license-spdx
Encapsulate the SPDX licence list https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json
https://github.com/jonathanstowe/license-spdx
json licence raku spdx
Last synced: about 2 months ago
JSON representation
Encapsulate the SPDX licence list https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json
- Host: GitHub
- URL: https://github.com/jonathanstowe/license-spdx
- Owner: jonathanstowe
- License: artistic-2.0
- Created: 2019-02-20T12:17:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-21T19:26:44.000Z (6 months ago)
- Last Synced: 2024-08-21T21:53:10.695Z (6 months ago)
- Topics: json, licence, raku, spdx
- Language: Raku
- Size: 229 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# License::SPDX
Abstraction over the [SPDX License List](https://spdx.org/licenses/)
![Build Status](https://github.com/jonathanstowe/License-SPDX/workflows/CI/badge.svg)
## Synopsis
```raku
use License::SPDX;
my $l = License::SPDX.new;
if $l.get-license('Artistic-2.0') -> $license {
pass "licence is good";
if $license.is-deprecated-license {
warn "deprecated licence";
}
}
else {
flunk "not a good licence";
}```
## Description
This provides an abstraction over the [SPDX License List](https://spdx.org/licenses/)
as provided in [JSON format](https://github.com/spdx/license-list-data/blob/master/json/licenses.json).
Its primary raison d'être is to help the licence checking of [Test::META](https://github.com/jonathanstowe/Test-META)
and to allow for the warning about deprecated licences therein.The intention is to update this with a new license list (and up the version,) every time the SPDX list is updated.
## Installation
Assuming that you have a working Rakudo compiler you should be able to install this using *zef* :
zef install License::SPDX
# Or from a local clone
zef install .
## Support
This is a very simple module, but if you have any
suggestions or patches etc please send them to https://github.com/jonathanstowe/License-SPDX/issues## Licence & Copyright
This is free software, please the [LICENCE](LICENCE) in the distribution.
© Jonathan Stowe 2019-2021
The SPDX Data licensing is described [here](https://github.com/spdx/license-list-data/blob/master/accessingLicenses.md#tech-report-license),
the JSON data is included verbatim from source.