license-compatibility
license-compatibility copied to clipboard
Need help
I need to do a license compatibility check. I am writing a pyhton script for the same. Could anyone take me through the algorithm used in this license-compatibility
module. Any sort of help would be appreciated.
I think the most interesting part is here: https://github.com/librariesio/license-compatibility/blob/master/lib/license/compatibility.rb#L10. The code is very readable, you should be able to understand it even if you don't know Ruby.
Of course you need to load the license data from somewhere. Here they are loaded from a JSON file: https://github.com/librariesio/license-compatibility/blob/master/lib/license/licenses.json
The rest is mainly command line utils.
Thanks for the summary @Pawamoy! There's also a very handy blogpost and diagram explaining the high level approach here: http://janelia-flyem.github.io/licenses.html