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.4900.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ea3e000e775bfb70a7a1f5a211ef936ae4900e54829f486eff2e8b3adfbda9f |
|
MD5 | 59d0b7afe5af046d1e232d4148122d27 |
|
BLAKE2b-256 | f9eb3999bfa8db5eb58849bb6b0d379d4c706bfec63369ef1f2ae5cdd653694a |
Close
Hashes for lsst_resources-26.2023.4900-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4035bd8f5592b401b9f4d75f07797fa9efebbc72f7cbdef90a348510e84b8020 |
|
MD5 | 0132f965403ccd2aa10689d5cdc0d91b |
|
BLAKE2b-256 | 1cebb39105963eac940a05c5f6d11cc347fbab9b0f76a1b9ee7f1012ad3ebd0e |