← Về thư mục
openai4s/host/science.py
- ScienceConnectorError · class · L22-L23 — class ScienceConnectorError(RuntimeError)
- ScienceDatabase · class · L27-L45 — class ScienceDatabase
- public · method · L36-L45 — def public(self) -> dict[str, Any]
- ScienceConnectorService · class · L122-L723 — class ScienceConnectorService
- init · method · L125-L137 — def init( self, # A fetch may answer with the content alone, or with a mapping that # also describes the raw response bytes. See _retrieve. fetch: Callable[[str, str, float, int], str | Mapping[str, Any]] | None = None, *, stage10: bool = False, ) -> None
- _catalog · method · L139-L144 — def _catalog(self) -> tuple[ScienceDatabase, ...]
- list_databases · method · L146-L169 — def list_databases(self, domain: str = "all") -> dict[str, Any]
- search · method · L171-L266 — def search( self, database: str, query: str, *, limit: int = 10, cursor: str | None = None, filters: Mapping[str, Any] | None = None, timeout: float = 30.0, ) -> dict[str, Any]
- adapter · function · L221-L222 — def adapter(*args, _search=searcher)
- _filters · method · L269-L287 — def _filters(filters: Mapping[str, Any] | None) -> dict[str, Any]
- _default_fetch · method · L290-L307 — def _default_fetch( url: str, fmt: str, timeout: float, max_chars: int ) -> dict[str, Any]
- _retrieve · method · L309-L322 — def _retrieve( self, url: str, fmt: str, timeout: float, max_chars: int ) -> tuple[str, dict[str, Any] | None]
- _json · method · L324-L334 — def _json(self, url: str, timeout: float, *, allow_empty: bool = False) -> Any
- _text · method · L336-L339 — def _text(self, url: str, timeout: float) -> str
- _observe · method · L341-L385 — def _observe( self, url: str, raw: str, observed: Mapping[str, Any] | None = None ) -> None
- _search_uniprot · method · L387-L444 — def _search_uniprot(self, query, limit, cursor, filters, timeout)
- _search_pdb · method · L446-L481 — def _search_pdb(self, query, limit, cursor, filters, timeout)
- _search_ensembl · method · L483-L515 — def _search_ensembl(self, query, limit, cursor, filters, timeout)
- _search_chembl · method · L517-L552 — def _search_chembl(self, query, limit, cursor, filters, timeout)
- _search_pubchem · method · L554-L594 — def _search_pubchem(self, query, limit, cursor, filters, timeout)
- _search_arxiv · method · L596-L659 — def _search_arxiv(self, query, limit, cursor, filters, timeout)
- _search_openalex · method · L661-L723 — def _search_openalex(self, query, limit, cursor, filters, timeout)
- _combined_digest · function · L726-L738 — def _combined_digest(responses: list[dict[str, Any]]) -> str | None
- _record · function · L741-L758 — def _record( identifier: str, title: str, url: str, record_type: str, attributes: Mapping[str, Any], ) -> dict[str, Any]
- _string · function · L761-L762 — def _string(value: Any, limit: int = 500) -> str
- _number · function · L765-L772 — def _number(value: Any) -> float | int | None
- _nested · function · L775-L781 — def _nested(value: Any, *keys: str) -> Any
- _element_text · function · L784-L786 — def _element_text(parent: ET.Element, path: str, limit: int = 1000) -> str