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
lsst_resources-27.2024.4000.tar.gz
(106.5 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-27.2024.4000.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1ef8888f84963a6b58021e4257b96b48f506a5328c3a96f57e1f8d5678253b3 |
|
MD5 | 034031491ef287fe5a75c704eca0d982 |
|
BLAKE2b-256 | 6a45753399bfc2c5482dfa42bc9b47ec34eb5ea2222fe0c887c235bba911ae8e |
Close
Hashes for lsst_resources-27.2024.4000-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d3ca3a30913deaa47785e82e070141c6317cc4fbcf1f5c4cbd07214cc21ad79 |
|
MD5 | 581ba278862460567555803409aa89f5 |
|
BLAKE2b-256 | 683dc908eb98edf4050a17ddaf645220015467f0b646fc8e482063790645a04f |