Install with pip and wrap your scripts with context managers for instant monitoring
Send job status updates and heartbeats via simple HTTP requests
Learn how to securely authenticate your API requests
1. Install the package:
pip install seerpy
2. Monitor your script:
from seerpy import Seer
import os
# api_key= preferred; apiKey= accepted for backwards compat
seer = Seer(api_key=os.getenv("SEER_API_KEY"), auto_replay=True)
# job_name must match a pipeline in your Seer dashboard
with seer.monitor("daily_report"):
run_report()1. Get your API key from dashboard
2. Send a heartbeat:
curl -X POST \
https://api.ansrstudio.com/heartbeat \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"job_name": "daily-etl",
"current_time": "2024-01-15T10:00:00Z"
}'