aoptk.literature.utils ====================== .. py:module:: aoptk.literature.utils Classes ------- .. autoapisummary:: aoptk.literature.utils.AsyncRequestLimiter Functions --------- .. autoapisummary:: aoptk.literature.utils.is_europepmc_id Module Contents --------------- .. py:class:: AsyncRequestLimiter(requests_per_second: int) Asynchronous request limiter to control the rate of API calls. .. py:attribute:: min_interval .. py:attribute:: _lock .. py:attribute:: _next_allowed :value: 0.0 .. py:method:: wait_turn() -> None :async: Wait until it's the turn for the next request based on the rate limit. .. py:function:: is_europepmc_id(publication_id: str) -> bool Check if the given publication ID is a EuropePMC ID.