b075ae47fec018b05adb4851cb540aa68b1ada08
Add statistics aggregation service with 4 core functions: - get_summary(): Aggregates total requests, cost, tokens with avg cost - get_by_model(): Groups stats by model with percentage calculations - get_by_date(): Groups stats by date for time series data - get_dashboard_data(): Combines all stats for dashboard view Features: - SQLAlchemy queries with ApiKey join for user filtering - Decimal precision for all monetary values - Period calculation and percentage breakdowns - Top models extraction Test: 11 unit tests covering all aggregation functions
openrouter-watcher
Applicazione per monitorare l'uso delle api keys di attive in openrouter
Languages
Python
94.3%
HTML
4.7%
Dockerfile
0.3%
JavaScript
0.3%
CSS
0.3%
Other
0.1%