Parides is a high-performance bridge between Prometheus and the Data Science stack. It automatically handles pagination, pivoting, and tabular alignment, delivering perfectly formatted data for machine learning and statistical analysis.
🚀 Quick Start
pip install parides
📊 Three Ways to Use Parides
1. Interactive Data Science (Python API)
Perfect for Jupyter Notebooks. Fetch aligned metrics directly into a Pandas DataFrame.
from parides.prom_conv import from_prom_to_df
# Automatically handles pagination and alignment
df = from_prom_to_df(
url="http://localhost:9090",
metrics_query='irate(node_cpu_seconds_total{mode="idle"}[5m])'
)
# Ready for Scikit-Learn or Matplotlib
df.plot()
2. ML Training Data (High-Performance CLI)
Extract months of historical data directly to Parquet or CSV. Parides streams data to disk to keep memory usage low even for multi-gigabyte exports.
# Export 3 months of data using 1-day chunks to bypass API limits
parides http://localhost:9090 'node_cpu_seconds_total' \
--start-date "2024-01-01T00:00:00Z" \
--end-date "2024-04-01T00:00:00Z" \
--chunk-size "1d" \
--format parquet
3. DevOps & ETL Pipelines (Docker)
Run Parides as a standalone tool in CI/CD or automated pipelines without local Python dependencies.
docker run -v $(pwd)/data:/app/timeseries \
ghcr.io/goettl79/parides http://prometheus:9090 "up" --format parquet
💡 Why Parides?
- Bypass API Limits: Automatically chunks large time-range queries (
--chunk-size) so you never hit "too many samples" errors. - Zero-Config Alignment: Pivots long-format JSON into wide-format tables (features as columns, time as rows) — exactly what
scikit-learnorPyTorchexpect. - Timezone Safe: All timestamps are strictly converted to UTC to prevent catastrophic time-shifting bugs in your models.
- Big Data Ready: CLI uses streaming writes (CSV/Parquet) to handle datasets larger than your system RAM.
🤝 Contributing
We welcome contributions! Please see our Contributing Guidelines to get started.
To set up for local development:
git clone https://github.com/goettl79/parides.git
cd parides
poetry install
📄 License
This project is licensed under the Apache License 2.0.
Metadata
Release files for parides 0.7.3
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 |
|---|---|---|---|---|
| parides-0.7.3.tar.gz | 10.9 kB | With provenance | Details for parides-0.7.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| parides-0.7.3-py3-none-any.whl | Python 3 | none | any | Details for parides-0.7.3-py3-none-any.whl |
Total release size: 23.2 kB
Release files / parides-0.7.3.tar.gz
| Download URL | parides-0.7.3.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f197be52b60b841f50fe92de8f0fc5617a74ba090f1ca52d58ad72b9ffe14210
|
|
BLAKE2b-256 checksum How to use checksums |
395eafcd71114b359b5524781411a47485c87fbd69179f765da03df3ab272790
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency logRelease files / parides-0.7.3-py3-none-any.whl
| Download URL | parides-0.7.3-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a29517a4f61e740d75c1b617e9035e3b44965c583b939409587d8960356d9b5e
|
|
BLAKE2b-256 checksum How to use checksums |
6b00c88988a3f9cf1d7c02c7579e58399facfa16447385616c192de5def9b745
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency logSecurity for parides 0.7.3
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for parides-0.7.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency logA 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.