MCPcopy Create free account
hub / github.com/requests-cache/requests-cache / __init__

Method __init__

examples/rps_graph.py:24–31  ·  view source on GitHub ↗
(self, interval: int = 1, scale: int = 500, **kwargs)

Source from the content-addressed store, hash-verified

22 """Display a bar chart of requests per second"""
23
24 def __init__(self, interval: int = 1, scale: int = 500, **kwargs):
25 super().__init__(BarColumn(), '{task.completed}', **kwargs)
26 self.current_task = None
27 self.interval = interval
28 self.interval_start = None
29 self.scale = scale
30 self.total_requests = 0
31 self.next_interval()
32
33 def next_interval(self):
34 """Create a new task to draw the next line on the bar chart"""

Callers

nothing calls this directly

Calls 1

next_intervalMethod · 0.95

Tested by

no test coverage detected