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.2700.tar.gz
(101.8 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-27.2024.2700.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96fce92fa674489c528701950684116bb841910e799053041c21d5cac324aea4 |
|
MD5 | 306950b50a00fdf7aecf8f0a9a74957d |
|
BLAKE2b-256 | afb44b12c6be7dce41b6c654ced3ac7b3c84972cf6c2ad602f16129bbdf3e817 |
Close
Hashes for lsst_resources-27.2024.2700-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 201d73299d82c29fd9735dafe06f6717315473145252662672c53996a363b2dc |
|
MD5 | 2a505e7cf195c3bccc26940f3635e22b |
|
BLAKE2b-256 | a900ec16862ba0825495508ffae00217d93340d591b25165776e594b7a7bfe18 |