euporie.core.convert.mime

Contain main format conversion function.

Functions

get_format(path[, default])

Attempt to guess the format of a path.

get_mime(path)

Attempt to determine the mime-type of a path.

lru_cache([maxsize, typed])

Least-recently-used cache decorator.

Classes

HTTPPath(*args[, protocol])

UPath(*args[, protocol])

UPathStatResult(stat_result_seq[, info_dict])

A stat_result compatible class wrapping fsspec info dicts.

euporie.core.convert.mime.get_format(path: Path | str, default: str = '') str

Attempt to guess the format of a path.

euporie.core.convert.mime.get_mime(path: Path | str) str | None

Attempt to determine the mime-type of a path.