omnipy.components.remote.tasks
| CLASS | DESCRIPTION |
|---|---|
GithubRepoContext |
|
GithubRepoContext
dataclass
async_get_github_repo_urls
async
async_get_github_repo_urls(
owner: str, repo: str, branch: str, path: str | Path, file_suffix: str | None = None
) -> HttpUrlDataset
Source code in src/omnipy/components/remote/tasks.py
async_load_urls_into_new_dataset
async
async_load_urls_into_new_dataset(
urls: HttpUrlDataset,
dataset_cls: type[_JsonDatasetT] = JsonDataset,
as_mime_type: str | None = None,
) -> _JsonDatasetT
Source code in src/omnipy/components/remote/tasks.py
get_auto_from_api_endpoint
async
get_auto_from_api_endpoint(
url: HttpUrlModel,
client_session: ClientSession | None = None,
retry_http_statuses: tuple[int, ...] = DEFAULT_RETRY_STATUSES,
retry_attempts: int = DEFAULT_RETRIES,
retry_backoff_strategy: BackoffStrategy.Literals = DEFAULT_BACKOFF_STRATEGY,
as_mime_type: str | None = None,
) -> AutoResponseContentModel
Source code in src/omnipy/components/remote/tasks.py
get_bytes_from_api_endpoint
async
get_bytes_from_api_endpoint(
url: HttpUrlModel,
client_session: ClientSession | None = None,
retry_http_statuses: tuple[int, ...] = DEFAULT_RETRY_STATUSES,
retry_attempts: int = DEFAULT_RETRIES,
retry_backoff_strategy: BackoffStrategy.Literals = DEFAULT_BACKOFF_STRATEGY,
) -> BytesModel
Source code in src/omnipy/components/remote/tasks.py
get_github_repo_urls
get_github_repo_urls(
owner: str, repo: str, branch: str, path: str | Path, file_suffix: str | None = None
) -> HttpUrlDataset
Source code in src/omnipy/components/remote/tasks.py
get_json_from_api_endpoint
async
get_json_from_api_endpoint(
url: HttpUrlModel,
client_session: ClientSession | None = None,
retry_http_statuses: tuple[int, ...] = DEFAULT_RETRY_STATUSES,
retry_attempts: int = DEFAULT_RETRIES,
retry_backoff_strategy: BackoffStrategy.Literals = DEFAULT_BACKOFF_STRATEGY,
) -> JsonModel
Source code in src/omnipy/components/remote/tasks.py
get_str_from_api_endpoint
async
get_str_from_api_endpoint(
url: HttpUrlModel,
client_session: ClientSession | None = None,
retry_http_statuses: tuple[int, ...] = DEFAULT_RETRY_STATUSES,
retry_attempts: int = DEFAULT_RETRIES,
retry_backoff_strategy: BackoffStrategy.Literals = DEFAULT_BACKOFF_STRATEGY,
) -> StrModel
Source code in src/omnipy/components/remote/tasks.py
load_urls_into_new_dataset
load_urls_into_new_dataset(
urls: HttpUrlDataset,
dataset_cls: type[_JsonDatasetT] = JsonDataset,
as_mime_type: str | None = None,
) -> _JsonDatasetT