projg2/pycargoebuild

Identify `license-file` by license text

Opened this issue · 3 comments

Is there no Python library for this?

mgorny commented

Could you throw an example package with license-files and their respective Gentoo licenses?

There's a Rust library/tool for identifying license texts:
https://github.com/jpeddicord/askalono

And third-party Python bindings:
https://pypi.org/project/pyaskalono/

However, the tool itself supports JSON output so it can be used directly.