MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / scancode_license_data

Function scancode_license_data

src/licensedcode/license_db.py:195–205  ·  view source on GitHub ↗

Dump license data from scancode licenses to the directory ``path`` passed in from command line. Dumps data in JSON, YAML and HTML formats and also dumps the .LICENSE file with the license text and the data as YAML frontmatter.

(path)

Source from the content-addressed store, hash-verified

193
194
195def scancode_license_data(path):
196 """
197 Dump license data from scancode licenses to the directory ``path`` passed
198 in from command line.
199
200 Dumps data in JSON, YAML and HTML formats and also dumps the .LICENSE file
201 with the license text and the data as YAML frontmatter.
202 """
203 click.secho(f'Dumping license data to: {path}', err=True)
204 count = generate(build_location=path)
205 click.secho(f'Done dumping #{count} licenses.', err=True)
206
207
208@click.command(name='scancode-license-data')

Callers 1

Calls 1

generateFunction · 0.85

Tested by

no test coverage detected