The original gist I provided seemed verbose, so I just pushed a bit of code to make LicenseFinder easier to use without its CLI. See the updated gist:
https://gist.github.com/mainej/b190d2f138c2b9e2e20a. You'll have to run off the master branch of pivotal/LicenseFinder for it to work.
To address your follow up questions: most of our users would rather NOT read the licenses... they just want to know "this package uses the BSD license". Just knowing the name of the license lets them say "yes" or "no" in 99% of the cases. In the remaining 1%, or if license_finder can't detect a license, users will do a bunch of manual research to decide whether to approve a package. I agree, license_finder could provide more assistance here, but it's not its primary goal.
Regarding compliance, license_finder was built to help find licenses and record approvals, but not to comply with the terms of licenses. The compliance use case is intriguing, but it would probably be better as a separate project, if there isn't one already. license_finder might be able to point to a license file as one part of the puzzle, but there's a lot of trickiness from there on. As you pointed out, every license will have different requirements. Sometimes you'll have to link to original material from your own web pages. Sometimes you'll have to reference copyright holders, or include copies of the licenses in your code. Or really anything else the package and/or license stipulate. It would be hard to extract all these requirements from every license, including custom licenses, and instruct a user on how to comply. license_finder is pretty far from being able to assist with all that.
One way license_finder might be able to help is that we've heard a few times that the output from `license_finder --debug` would be useful in other places. If you haven't seen the --debug output, it reports *why* license_finder has decided a package has a particular license. That can essentially be one of three things: either "you, the user, told me it's MIT and Ruby", or "the package definition says it's MIT and Ruby", or "I found files in the package's source that look like MIT and Ruby". But that actually brings up another question. That last case is the only one in which license_finder actually has the full text of the license. On most of my projects, that's by far the minority of packages. That throws another wrench into copyright extraction and similar issues.
Anyway, I'm also curious: what tools do people use for compliance?