|
| 1 | +from typing import Any, Iterator |
| 2 | + |
| 3 | +__version__: str |
| 4 | + |
| 5 | + |
| 6 | +class Search: |
| 7 | + def matched(self) -> int: ... |
| 8 | + def items(self) -> Iterator[dict[str, Any]]: ... |
| 9 | + def item_collection_as_dict(self) -> dict[str, Any]: ... |
| 10 | + @property |
| 11 | + def metadata(self) -> dict[str, Any]: ... |
| 12 | + def __len__(self) -> int: ... |
| 13 | + |
| 14 | +class Client: |
| 15 | + def __init__( |
| 16 | + self, |
| 17 | + config: dict[str, Any] | None = None, |
| 18 | + *, |
| 19 | + storage: str = "memory", |
| 20 | + ) -> None: ... |
| 21 | + @classmethod |
| 22 | + def open( |
| 23 | + cls, |
| 24 | + url: str, |
| 25 | + *, |
| 26 | + id: str | None = None, |
| 27 | + storage: str = "memory", |
| 28 | + ) -> "Client": ... |
| 29 | + @classmethod |
| 30 | + def from_yaml(cls, yaml_path: str, *, storage: str = "memory") -> "Client": ... |
| 31 | + |
| 32 | + # engine lifecycle |
| 33 | + def start(self) -> None: ... |
| 34 | + def shutdown(self) -> None: ... |
| 35 | + |
| 36 | + # catalogs |
| 37 | + def add_catalog( |
| 38 | + self, catalog: dict[str, Any], *, provider: str | None = None |
| 39 | + ) -> dict[str, Any]: ... |
| 40 | + def add_catalogs( |
| 41 | + self, catalogs: list[dict[str, Any]] |
| 42 | + ) -> list[dict[str, Any]]: ... |
| 43 | + def get_catalog(self, id: str) -> dict[str, Any]: ... |
| 44 | + def list_catalogs(self) -> list[dict[str, Any]]: ... |
| 45 | + def update_catalog(self, id: str, update: dict[str, Any]) -> dict[str, Any]: ... |
| 46 | + def delete_catalog(self, id: str) -> None: ... |
| 47 | + |
| 48 | + # providers |
| 49 | + def add_provider(self, provider: dict[str, Any]) -> dict[str, Any]: ... |
| 50 | + def add_providers( |
| 51 | + self, providers: list[dict[str, Any]] |
| 52 | + ) -> list[dict[str, Any]]: ... |
| 53 | + def get_provider(self, id: str) -> dict[str, Any]: ... |
| 54 | + def list_providers(self) -> list[dict[str, Any]]: ... |
| 55 | + def update_provider(self, id: str, update: dict[str, Any]) -> dict[str, Any]: ... |
| 56 | + def delete_provider(self, id: str) -> None: ... |
| 57 | + |
| 58 | + # settings |
| 59 | + def get_settings(self) -> dict[str, Any]: ... |
| 60 | + def update_settings(self, update: dict[str, Any]) -> None: ... |
| 61 | + |
| 62 | + # search & discovery (sync) |
| 63 | + def search(self, **kwargs: Any) -> Search: ... |
| 64 | + def list_collections(self) -> list[dict[str, Any]]: ... |
| 65 | + def get_collections(self) -> list[dict[str, Any]]: ... |
| 66 | + def get_collection(self, id: str) -> dict[str, Any]: ... |
| 67 | + def catalogs_supporting(self, collection_id: str) -> list[str]: ... |
| 68 | + def collections_by_catalog(self) -> dict[str, list[str]]: ... |
| 69 | + def describe_collection( |
| 70 | + self, catalog_id: str, collection_id: str |
| 71 | + ) -> dict[str, Any] | None: ... |
| 72 | + |
| 73 | +class AsyncClient: |
| 74 | + def __init__( |
| 75 | + self, |
| 76 | + config: dict[str, Any] | None = None, |
| 77 | + *, |
| 78 | + storage: str = "memory", |
| 79 | + ) -> None: ... |
| 80 | + @classmethod |
| 81 | + async def open( |
| 82 | + cls, |
| 83 | + url: str, |
| 84 | + *, |
| 85 | + id: str | None = None, |
| 86 | + storage: str = "memory", |
| 87 | + ) -> "AsyncClient": ... |
| 88 | + @classmethod |
| 89 | + def from_yaml( |
| 90 | + cls, yaml_path: str, *, storage: str = "memory" |
| 91 | + ) -> "AsyncClient": ... |
| 92 | + |
| 93 | + # engine lifecycle |
| 94 | + async def start(self) -> None: ... |
| 95 | + async def shutdown(self) -> None: ... |
| 96 | + |
| 97 | + # catalogs (sync — config-time operations) |
| 98 | + def add_catalog( |
| 99 | + self, catalog: dict[str, Any], *, provider: str | None = None |
| 100 | + ) -> dict[str, Any]: ... |
| 101 | + def add_catalogs( |
| 102 | + self, catalogs: list[dict[str, Any]] |
| 103 | + ) -> list[dict[str, Any]]: ... |
| 104 | + def get_catalog(self, id: str) -> dict[str, Any]: ... |
| 105 | + def list_catalogs(self) -> list[dict[str, Any]]: ... |
| 106 | + def update_catalog(self, id: str, update: dict[str, Any]) -> dict[str, Any]: ... |
| 107 | + def delete_catalog(self, id: str) -> None: ... |
| 108 | + |
| 109 | + # providers (sync) |
| 110 | + def add_provider(self, provider: dict[str, Any]) -> dict[str, Any]: ... |
| 111 | + def add_providers( |
| 112 | + self, providers: list[dict[str, Any]] |
| 113 | + ) -> list[dict[str, Any]]: ... |
| 114 | + def get_provider(self, id: str) -> dict[str, Any]: ... |
| 115 | + def list_providers(self) -> list[dict[str, Any]]: ... |
| 116 | + def update_provider(self, id: str, update: dict[str, Any]) -> dict[str, Any]: ... |
| 117 | + def delete_provider(self, id: str) -> None: ... |
| 118 | + |
| 119 | + # settings (sync) |
| 120 | + def get_settings(self) -> dict[str, Any]: ... |
| 121 | + def update_settings(self, update: dict[str, Any]) -> None: ... |
| 122 | + |
| 123 | + # search & discovery (async) |
| 124 | + async def search(self, **kwargs: Any) -> Search: ... |
| 125 | + async def list_collections(self) -> list[dict[str, Any]]: ... |
| 126 | + async def get_collections(self) -> list[dict[str, Any]]: ... |
| 127 | + async def get_collection(self, id: str) -> dict[str, Any]: ... |
| 128 | + async def catalogs_supporting(self, collection_id: str) -> list[str]: ... |
| 129 | + async def collections_by_catalog(self) -> dict[str, list[str]]: ... |
| 130 | + async def describe_collection( |
| 131 | + self, catalog_id: str, collection_id: str |
| 132 | + ) -> dict[str, Any] | None: ... |
0 commit comments