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

resolve_coco_table_url(
json_file: str,
image_root: str | None,
dataset_name: str,
project_name: str | None = None,
) 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.

get_hash(
paths: list[str],
dataset_name: str,
) str
resolve_table_url(
paths: list[str],
dataset_name: str,
project_name: str | None = None,
prefix: str | None = None,
) Url

Resolves a unique table url from the given parameters.

get_cache_file_name(
table_url: Url,
) Url

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