Skip to content

Storage

uptimely.storage provides a shared interface for reading local files and S3 objects and working with their paths. Local file access needs no extra dependencies; S3 access requires the uptimely-core[s3] extra.

storage

Read local files and S3 objects through a shared storage interface.

Storage

Read spec files from local disk or S3 depending on the path scheme.

S3_PREFIX class-attribute instance-attribute

S3_PREFIX = 's3://'

read classmethod

read(path: str | Path) -> str

is_dir classmethod

is_dir(path: str | Path) -> bool

exists classmethod

exists(path: str | Path) -> bool

join classmethod

join(base: str | Path, *parts: str) -> str

Join a relative path onto a base, preserving the s3:// scheme if present.

parent classmethod

parent(path: str | Path) -> str