Entrypoint

Entrypoint

A short script to parse the “score” from the JSON output of Google Lighthouse and to work as the entry point for a docker container.

class entrypoint.LighthouseTest(url: str, category: str, report_type: str = 'json')[source]

A lighthouse test as an object.

generate_report(report_type) str[source]

Use lighthouse to generate an output file.

parse_score()[source]

Entry point for the script.

entrypoint.main(category: str, url: str, report: bool)[source]

Run as the entrypoint and ensure the input is correct.

entrypoint.parse_args()[source]

Return a namespace of the parsed arguments for the program.