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-24.0.0rc4.tar.gz
(51.4 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-24.0.0rc4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 695125835c46091f4aecb7b5ae44004e5126e52e47d6bc8f394bc3bf6764b1f3 |
|
MD5 | 12c1e315a81ff2e5b547aa03397b0adc |
|
BLAKE2b-256 | 086538ec9ff8ecf41679d37a3bdfe8f7a9ca6d9457e310d048fdbacdc202605d |