parseur.decorator

Functions

rate_limited_batch([batch_size, max_per_second])

Decorator for a batch-processing function that takes a list of items and yields results.

Module Contents

parseur.decorator.rate_limited_batch(batch_size: int = 5, max_per_second: int = 5)[source]

Decorator for a batch-processing function that takes a list of items and yields results. Applies rate limiting: max N calls per second, B items per batch.