tlcurl.url_adapters.api_url_adapterΒΆ
A mostly dummy adapter for resolving URLs starting with api://.
Module ContentsΒΆ
ClassesΒΆ
Class |
Description |
|---|---|
A mostly dummy adapter for resolving URLs starting with |
APIΒΆ
- class ApiUrlAdapterΒΆ
Bases:
tlcurl.url_adapter.UrlAdapterA mostly dummy adapter for resolving URLs starting with
api://.In fact, there is never a need to resolve βapi://β URLs because the objects will already be in the ObjectRegistry, but this is a convenient place for putting other related functionality.
- api_protocol = NoneΒΆ
- api_scheme = NoneΒΆ
- abstract copy_url_async(
- source: Url,
- destination: Url,
- options: IfExistsOption = IfExistsOption.OVERWRITE,
- abstract list_dir(
- url: Url,
- abstract stat(
- url: Url,
API URLs donβt support file status operations.
- Parameters:
url β The URL to get status for
- Raises:
NotImplementedError β Always, as API URLs donβt support stat
- touch(
- url: Url,
API URLs donβt support file modification operations.
- Parameters:
url β The URL to touch
- Raises:
NotImplementedError β Always, as API URLs donβt support touch
- abstract write_binary_content_to_url_async(
- url: Url,
- content: bytes,
- options: IfExistsOption = IfExistsOption.OVERWRITE,