Download core/api_models/common.py from Kyrlos11/nniback: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/spaces/Kyrlos11/nniback/resolve/main/core/api_models/common.py
- Command line
-
hf download hf://spaces/Kyrlos11/nniback/core/api_models/common.py
-
curl -L -o common.py https://huggingface.co/spaces/Kyrlos11/nniback/resolve/main/core/api_models/common.py
299 Bytes
| """Common API models used across multiple domains.""" | |
| from pydantic import BaseModel | |
| class PaginationInfo(BaseModel): | |
| """Pagination information for list responses.""" | |
| current_page: int | |
| page_size: int | |
| total_items: int | |
| total_pages: int | |
| has_next: bool | |
| has_previous: bool | |