MCPcopy Create free account
hub / github.com/vastsa/FileCodeBox / __init__

Method __init__

apps/base/dependencies.py:69–72  ·  view source on GitHub ↗
(self, count: int, minutes: int)

Source from the content-addressed store, hash-verified

67
68class IPRateLimit:
69 def __init__(self, count: int, minutes: int):
70 self.ips: Dict[str, Dict[str, Union[int, datetime]]] = {}
71 self.count = count
72 self.minutes = minutes
73
74 def check_ip(self, ip: str) -> bool:
75 if ip in self.ips:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected