Philippe Ombredanne <[email protected]>:
> Eric:
> I maintain such a list in scancode [1] for SPDX and many other licenses.
> The format is one yaml file for each licenses metadata and a .LICENSE
> file for the license text and a .SPDX file for the SPDX reference
> license text.
> There were request to have that in a separate repo,if that can help I
> can pull it out.
> There is also Python code to read it [2]
>
> [1]
> https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses
> [2]
> https://github.com/nexB/scancode-toolkit/blob/c1e70994abe8ceb18bc99aa6f81ebc40d832fb7f/src/licensedcode/models.py#L62
As an implementor, I would prefer to just pick up a big JSON object rather than
having to stitch together something from YAML and a bunch of parallel files.
It's simpler; my library support would only have to consist of a JSON read
and - bang! - instant Python structure. I like that kind of simple.
Can we discuss how to enrich the existing JSON? I realize there is an issue
about templated licenses, but that should be solved anyway and I can think
of simple ways to do it.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
_______________________________________________
Spdx-tech mailing list
[email protected]
https://lists.spdx.org/mailman/listinfo/spdx-tech