Simple ERDDAP Metrics
Simple ERDDAP Metrics is a lightweight tool to analyze ERDDAP server log files and visualize usage metrics through an interactive dashboard or export the parsed data as CSV.
Features
- Parse ERDDAP log files automatically
- Detect dataset views and downloads
- Track file formats used
- Aggregate usage statistics (daily, monthly, yearly)
- Optional IP geolocation
- Interactive dashboard
- CSV export via CLI
- User-configurable formats and endpoints via YAML configuration
Installation
The package can be installed with:
pip install simple-erddap-metrics
YAML Configuration File
Users can customize parsing behavior through a YAML configuration file.
Fields
data_formats: Defines which file extensions count as downloads (e.g., .csv, .nc). If a request uses one of these formats, it is classified as a download.system_endpoints: Defines ERDDAP internal endpoints that should be ignored (e.g., index, documentation). These are not counted as dataset interactions.
Command Line Interface
The tool can be used either to launch the interactive dashboard or to export parsed logs to CSV.
Interactive dashboard mode
Launch the dashboard:
simple-erddap-metrics
This will start the Streamlit interface.
Export mode
Export parsed logs to CSV:
simple-erddap-metrics -e -l ./logs
This will generate the out.csv file.
CLI Arguments
| Argument | Required | Description |
|---|---|---|
-l, --logs |
in export mode | Directory containing ERDDAP log files |
-e, --export |
optional | Export parsed logs to CSV |
-c, --config |
optional | YAML configuration file |
--enable-geo |
optional | Enable IP geolocation |
Expected Log Files
The parser expects ERDDAP access logs such as:
log.txt
logArchivedAt...
logPreviousArchivedAt...
All files starting with log will be parsed.
Metadata
Release files for simple-erddap-metrics 0.1.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 |
|---|---|---|---|---|
| simple_erddap_metrics-0.1.1.tar.gz | 22.8 kB | Without provenance | Details for simple_erddap_metrics-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simple_erddap_metrics-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for simple_erddap_metrics-0.1.1-py3-none-any.whl |
Total release size: 47.0 kB
Release files / simple_erddap_metrics-0.1.1.tar.gz
| Download URL | simple_erddap_metrics-0.1.1.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e63ac429368fa1e29522583d5797415f4fba5da5f6f1ae30bf8f31ddaae1779
|
|
BLAKE2b-256 checksum How to use checksums |
e5ee8d9cd239d8cfdf3a80689ea163a802ec951f28441a326e4f0a3d3b2bf108
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.16
|
Release files / simple_erddap_metrics-0.1.1-py3-none-any.whl
| Download URL | simple_erddap_metrics-0.1.1-py3-none-any.whl |
|---|---|
| Size | 24.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0afbe6ddde14c8cba4c6816a22e7dc478a792225e3c07c1b673f00ad08be0d73
|
|
BLAKE2b-256 checksum How to use checksums |
e04c163f81d618651b17cc5c43a1419a91541686c3fc94699c1aa04e1c274388
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.16
|
Security for simple-erddap-metrics 0.1.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.