tlc.core.objects.tables.from_url.utils#

Helpers for loading tables from URLs

Module Contents#

Functions#

Function

Description

resolve_coco_table_url

Resolves a unique table url from the given parameters.

get_hash

resolve_table_url

Resolves a unique table url from the given parameters.

get_cache_file_name

Returns the name of the cache file for the given table url.

API#

tlc.core.objects.tables.from_url.utils.resolve_coco_table_url(json_file: str, image_root: str | None, dataset_name: str, project_name: str | None = None) tlc.core.url.Url#

Resolves a unique table url from the given parameters.

If a table already exists matching the given parameters, the existing table url is returned. Otherwise, a new table url with a unique name is returned.

tlc.core.objects.tables.from_url.utils.get_hash(paths: list[str], dataset_name: str) str#
tlc.core.objects.tables.from_url.utils.resolve_table_url(paths: list[str], dataset_name: str, project_name: str | None = None, prefix: str | None = None) tlc.core.url.Url#

Resolves a unique table url from the given parameters.

tlc.core.objects.tables.from_url.utils.get_cache_file_name(table_url: tlc.core.url.Url) tlc.core.url.Url#

Returns the name of the cache file for the given table url.