Lighthouse Garden
Aggregate a performance overview for various target pages using the Google Lighthouse service.
Features
- Track multiple target pages
- Lighthouse audits for performance, accessibility, best practices and SEO
- Average performance data
- History performance graph with stored lighthouse reports
- Informational badges:
- Performance trend indicator
Installation
Prerequisite
The script needs python 3.5 or higher. It is necessary for some additional functionalities to have pip installed on your local machine.
pip
The library can be installed from PyPI:
$ pip3 install lighthouse-garden-kmi
Configuration
The configuration file contains important information about the script processing and target pages.
{
"export_path": "path/to/export/",
"keep_history": 10,
"targets": [
{
"title": "Google",
"identifier": "google",
"url": "https://www.google.com"
}
]
}
Usage
Run the python script via command line.
$ python3 lighthouse_garden
usage: lighthouse_garden [-h] [-v] [-c CONFIG] [--clear]
Monitoring performance data by lighthouse.
optional arguments:
-h, --help show this help message and exit
-v, --verbose Enable extended console output
-c CONFIG, --config CONFIG
Path to config file
--clear Clear all performance data and reset the application
Cronjob
Register optionally a cronjob for regularly updates
0 5 * * * python3 lighthouse_garden -c /var/www/html/config.json
Test
Run the script within the DDEV container:
$ ddev start
$ ddev ssh
/var/www/html$ pip3 install -r requirements.txt
/var/www/html$ python3 lighthouse_garden -c tests/config.json
Open http://lighthouse-garden.ddev.site/
Build
The packaging process of the python module is described on python.org.
Credits
- Performance analysis by lighthouse
- Graph visualization by plot.ly
- Icon made by freepik
Metadata
Release files for lighthouse-garden-kmi 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lighthouse_garden-kmi-1.3.1.tar.gz | 50.4 kB | Without provenance | Details for lighthouse_garden-kmi-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lighthouse_garden_kmi-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for lighthouse_garden_kmi-1.3.1-py3-none-any.whl |
Total release size: 104.5 kB
Release files / lighthouse_garden-kmi-1.3.1.tar.gz
| Download URL | lighthouse_garden-kmi-1.3.1.tar.gz |
|---|---|
| Size | 50.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
375eb98b2fe2d66877a63f5df64340a2dd3c1aa3686fea9983d7f54d5576de34
|
|
BLAKE2b-256 checksum How to use checksums |
e81b5902b379f23279b23a13afd5e7cb072e25fd3d292ca796522f99c9c8a942
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / lighthouse_garden_kmi-1.3.1-py3-none-any.whl
| Download URL | lighthouse_garden_kmi-1.3.1-py3-none-any.whl |
|---|---|
| Size | 54.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c256825f33da18589461615e0f5c4ce25371589bb5b27e62995391142beef947
|
|
BLAKE2b-256 checksum How to use checksums |
b6a5fd29af8f0298eb726b85b2a7edf30aef8e7bf29deb7e545e7109b6e25105
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for lighthouse-garden-kmi 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.