Source code for tooluniverse.tools.PubTator3_LiteratureSearch

"""
PubTator3_LiteratureSearch

Find PubMed articles that match a keyword, a PubTator entity ID (e.g. β€œ@GENE_BRAF”), or an entity...
"""

from typing import Any, Optional, Callable
from ._shared_client import get_shared_client


[docs] def PubTator3_LiteratureSearch( query: str, page: int, page_size: int, *, stream_callback: Optional[Callable[[str], None]] = None, use_cache: bool = False, validate: bool = True, ) -> Any: """ Find PubMed articles that match a keyword, a PubTator entity ID (e.g. β€œ@GENE_BRAF”), or an entity... Parameters ---------- query : str What you want to search for. This can be plain keywords, a single PubTator ID... page : int Zero-based results page (optional; default = 0). page_size : int How many PMIDs to return per page (optional; default = 20, maximum = 200). stream_callback : Callable, optional Callback for streaming output use_cache : bool, default False Enable caching validate : bool, default True Validate parameters Returns ------- Any """ # Handle mutable defaults to avoid B006 linting error return get_shared_client().run_one_function( { "name": "PubTator3_LiteratureSearch", "arguments": {"query": query, "page": page, "page_size": page_size}, }, stream_callback=stream_callback, use_cache=use_cache, validate=validate, )
__all__ = ["PubTator3_LiteratureSearch"]