Visible request capacity
Turns request timestamps and a documented fixed-window limit into used, remaining and utilization values.
Day 036 / APIs / Rate Limits
A dependency-free Python CLI that evaluates sanitized request timestamps against a fixed-window limit and visualizes usage, remaining capacity, status and reset timing.
Turns request timestamps and a documented fixed-window limit into used, remaining and utilization values.
Aligns the active window to UTC epoch boundaries and shows the exact reset timestamp and remaining seconds.
Makes no network request and does not claim to reproduce sliding-window, token-bucket or provider-specific policies.
Fixed-window usage calculation
Healthy, warning and blocked states
Reset-boundary countdown
Timezone-aware ISO 8601 input
Readable and JSON reports
Twelve standard-library tests included
Argparse, dataclasses, datetime and JSON provide the dependency-free command-line workflow.
Models fixed windows, bounded capacity, threshold states and reset timing without touching a live service.
Twelve tests cover window membership, boundaries, future dates, statuses, visualization, validation and CLI JSON output.