tessl install tessl/pypi-pyrate-limiter@3.9.0Python Rate-Limiter using Leaky-Bucket Algorithm for controlling request rates in applications with multiple backend storage options.
Agent Success
Agent success rate when using this tile
81%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.45x
Baseline
Agent success rate without this tile
56%
{
"context": "This evaluation assesses how effectively the engineer uses PyrateLimiter's failing rate tracking capability to diagnose which specific rate limit is exceeded during rate limit violations.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Rate Definition",
"description": "Uses Rate class to define multiple concurrent rate limits (per-second, per-minute, per-hour) with correct limit counts and Duration enum values",
"max_score": 15
},
{
"name": "Limiter Initialization",
"description": "Creates a Limiter instance with appropriate configuration using the Rate objects and a suitable bucket (InMemoryBucket, SQLiteBucket, etc.)",
"max_score": 15
},
{
"name": "Non-blocking Acquisition",
"description": "Uses try_acquire method with blocking=False parameter to check rate limits without waiting",
"max_score": 20
},
{
"name": "Failing Rate Access",
"description": "Accesses the bucket's failing_rate property to identify which specific rate limit caused the rejection",
"max_score": 30
},
{
"name": "Rate Information Extraction",
"description": "Extracts limit and interval information from the failing Rate object to construct meaningful diagnostic messages",
"max_score": 15
},
{
"name": "Return Value Structure",
"description": "Returns a properly structured dictionary containing allowed status, user_id, and failing_limit description as specified",
"max_score": 5
}
]
}