upload_sparklines
Documentation for eth_defi.research.sparkline_export.upload_sparklines function.
- upload_sparklines(s3_client, bucket_name, render_data, max_workers)
Upload a bounded image list using the configured thread count.
Each task publishes one vault’s SVG and PNG while retaining the existing conditional upload and partial-failure behaviour.
This compatibility helper retains the standalone script’s previous public API. The production coordinator uploads per-vault asset sets directly so one partial set cannot be mistaken for a complete publication.
- Parameters
s3_client (Any) – Authenticated S3-compatible client.
bucket_name (str) – Destination R2 bucket.
render_data (list[eth_defi.research.sparkline_export.RenderData]) – Rendered image payloads.
max_workers (int) – Upload thread count.
- Returns
Number of uploaded and unchanged objects.
- Return type