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.UrlAdapter
A 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_scheme = None¶
- api_protocol = None¶
- abstract write_string_content_to_url_async(
- url: Url,
- content: str,
- options: IfExistsOption = IfExistsOption.OVERWRITE,
- abstract write_binary_content_to_url_async(
- url: Url,
- content: bytes,
- options: IfExistsOption = IfExistsOption.OVERWRITE,
- 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