Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

aiofreqlimit

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aiofreqlimit - npm Package Compare versions

Comparing version
0.2.0
to
0.2.1
+1
-1
PKG-INFO
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

@@ -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()