Download src/models/api/catalog.py from DataEyond/Agentic-Service-Data-Eyond-Catalog: direct link, hf CLI and curl.
- Browser
- Download file 988 Bytes
-
https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/717452f69ec32394dea2a8fc11aba47eebe5bc53/src/models/api/catalog.py
- Command line
-
hf download hf://spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog@717452f69ec32394dea2a8fc11aba47eebe5bc53/src/models/api/catalog.py
-
curl -L -o catalog.py https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/717452f69ec32394dea2a8fc11aba47eebe5bc53/src/models/api/catalog.py
988 Bytes
| """Request / response models for catalog-related routes.""" | |
| from datetime import datetime | |
| from pydantic import BaseModel, Field | |
| class CatalogRebuildRequest(BaseModel): | |
| user_id: str | |
| class CatalogRebuildResponse(BaseModel): | |
| user_id: str | |
| sources_rebuilt: int | |
| class CatalogIndexEntry(BaseModel): | |
| """One row in the per-user catalog index — used by the refresher to decide | |
| which sources to rebuild and by the UI to list registered sources. | |
| """ | |
| source_id: str = Field(..., description="Stable internal source identifier.") | |
| source_type: str = Field(..., description="schema | tabular | unstructured.") | |
| name: str = Field(..., description="Display name (DB name or filename).") | |
| location_ref: str = Field(..., description="URI: dbclient://… or az_blob://…") | |
| table_count: int = Field(..., description="Number of tables/sheets in this source.") | |
| updated_at: datetime = Field(..., description="Last time this source was (re)introspected.") | |