tlc.core.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 tlc.core.url_adapters.http_url_adapter.HttpUrlAdapter

Bases: tlc.core.url_adapter.UrlAdapterAsyncFromSync

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

schemes() list[tlc.core.url.Scheme]
read_string_content_from_url(url: tlc.core.url.Url) str
read_binary_content_from_url(url: tlc.core.url.Url) bytes
delete_url(url: tlc.core.url.Url) None
abstract make_dirs(url: tlc.core.url.Url, exist_ok: bool = False) None
abstract get_file_size(url: tlc.core.url.Url) int
abstract list_dir(url: tlc.core.url.Url) collections.abc.Iterator[tlc.core.url_adapter.UrlAdapterDirEntry]
abstract exists(url: tlc.core.url.Url) bool
abstract is_dir(url: tlc.core.url.Url) bool
abstract is_writable(url: tlc.core.url.Url) bool
abstract stat(url: tlc.core.url.Url) tlc.core.url_adapter.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: tlc.core.url.Url) concurrent.futures.Future
touch(url: tlc.core.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