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.5100.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc3f4795b648bf5d437ee72bdf9a20ad58621f685ce6680d646947bc2fb206ea |
|
MD5 | cef752542f175a096a33d7785f45cdb6 |
|
BLAKE2b-256 | a63d8ba8203f129a5d2e1fe9ad3184f50cfdf09e30b31fd9ebd5a9e08634517d |
Close
Hashes for lsst_resources-26.2023.5100-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e71f55f15b78e8f96ab09ae77a4766cba59e96ea279412a96c26fe25efe1232b |
|
MD5 | a7e25ae39ab4ba1add3abe029f8dd660 |
|
BLAKE2b-256 | c6461115ec4802e521a9fcbcd8b8563fa3936bc5078916214556166e27e73b02 |