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.4800.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17dc5d5861b167e520c0c4deae6860d996bfe1b9787c5aca9b2e997792937e43 |
|
MD5 | 0e85dd8255c781a229081ed044daa4e5 |
|
BLAKE2b-256 | 3d5ca6b7c6822c1527c0e2017ab56306f9c0a0f4b11fd985332f376d9a3d560a |
Close
Hashes for lsst_resources-26.2023.4800-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26d0ccbca4602cba8a18178a1ed764638918e61bf0687930e996a9b5bf35c1a2 |
|
MD5 | 290bfa8c13a2d7560735cbef11b6046d |
|
BLAKE2b-256 | 15cc6aed167f3c08d8ce78e7a1fac727680946abd3ad7c55593edc9652b91382 |