Skip to content
/ resources Public

Generic interface for accessing local and remote file resources

License

Notifications You must be signed in to change notification settings

lsst/resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a0d737a · Dec 18, 2024
Nov 21, 2024
Nov 20, 2024
Dec 18, 2024
Nov 9, 2024
Oct 6, 2022
Nov 30, 2021
Nov 20, 2024
Jul 11, 2022
Nov 30, 2021
Jun 10, 2022
Jun 25, 2022
Aug 26, 2022
Dec 3, 2021
Oct 1, 2024
Oct 1, 2024
Oct 1, 2024
Jan 29, 2024
Dec 8, 2023

Repository files navigation

lsst.resources

pypi codecov

This package provides a simple interface to local or remote files using URIs.

from lsst.resources import ResourcePath

file_uri = ResourcePath("/data/file.txt")
contents = file_uri.read()

s3_uri = ResourcePath("s3://bucket/data/file.txt")
contents = s3_uri.read()

The package currently understands file, s3, gs, http[s], and resource (Python package resource) URI schemes as well as a scheme-less URI (relative local file path).

The package provides the main file abstraction layer in the Rubin Observatory Data Butler datastore.

PyPI: lsst-resources