tlcurl.url_adapters.http_url_adapter

An adapter for resolving reads/writes to URLs starting with http:// or https://

Module Contents

Classes

Class

Description

HttpUrlAdapter

An adapter for resolving reads/writes to URLs starting with http:// or https://

API

class HttpUrlAdapter

Bases: tlcurl.url_adapter.UrlAdapterAsyncFromSync

An adapter for resolving reads/writes to URLs starting with http:// or https://

schemes() list[Scheme]
read_string_content_from_url(
url: Url,
) str
read_binary_content_from_url(
url: Url,
) bytes
delete_url(
url: Url,
) None
abstract make_dirs(
url: Url,
exist_ok: bool = False,
) None
abstract get_file_size(
url: Url,
) int
abstract list_dir(
url: Url,
) Iterator[UrlAdapterDirEntry]
abstract exists(
url: Url,
) bool
abstract is_dir(
url: Url,
) bool
abstract is_writable(
url: Url,
) bool
abstract stat(
url: Url,
) UrlAdapterDirEntry

Http URLs don’t support file status operations.

Parameters:

url – The URL to get status for

Raises:

NotImplementedError – Always, as Http URLs don’t support stat

abstract stat_async(
url: Url,
) Future
touch(
url: Url,
) None

Http URLs don’t support file modification operations.

Parameters:

url – The URL to touch

Raises:

NotImplementedError – Always, as API URLs don’t support touch