An abstraction layer for reading and writing from URI file resources.
Project description
lsst.resources
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for lsst-resources-26.2023.4000.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8ee7a3ad20a211cc37fcf55be3e0016fb4a0817cfc6d92da4618ceba1bbf2e4 |
|
MD5 | e885567cad97554f0a2a8c411cb718dc |
|
BLAKE2b-256 | 0e47da0273cabe3f04aa9d1b629a07f90180e96391ba046183124ebc5b1efa7b |
Close
Hashes for lsst_resources-26.2023.4000-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 114957f2ed2476a825481a2ddfbe88b543f2bb120be57dc96b7078dcabe08c3f |
|
MD5 | 568460dfe035c6e4a194b4e6d120c553 |
|
BLAKE2b-256 | 7931e192cf0b269608bdb55ecb192a3dfe2a37fbde9dfe751e6708c732a16045 |