aiofreqlimit
Advanced tools
+1
-1
| Metadata-Version: 2.3 | ||
| Name: aiofreqlimit | ||
| Version: 0.2.0 | ||
| Version: 0.2.1 | ||
| Summary: Frequency limit for asyncio | ||
@@ -5,0 +5,0 @@ Author: Gleb Chipiga |
+1
-1
@@ -7,3 +7,3 @@ [build-system] | ||
| name = "aiofreqlimit" | ||
| version = "0.2.0" | ||
| version = "0.2.1" | ||
| description = "Frequency limit for asyncio" | ||
@@ -10,0 +10,0 @@ readme = "README.md" |
@@ -48,10 +48,3 @@ import asyncio | ||
| async def resource(self, key: Hashable | None = None) -> AsyncIterator[None]: | ||
| """ | ||
| Context manager that enforces the limit. | ||
| key=None — global bucket (single key for whole limiter). | ||
| """ | ||
| if key is None: | ||
| key = "_global" | ||
| """Context manager that enforces the limit.""" | ||
| loop = asyncio.get_running_loop() | ||
@@ -58,0 +51,0 @@ now = loop.time() |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
26227
-0.53%372
-1.33%