license-compatibility icon indicating copy to clipboard operation
license-compatibility copied to clipboard

Need help

Open sunilk747 opened this issue 6 years ago • 2 comments

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.

sunilk747 avatar Dec 06 '17 06:12 sunilk747

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.

pawamoy avatar Dec 06 '17 10:12 pawamoy

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

andrew avatar Dec 07 '17 10:12 andrew