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.3200.tar.gz
(101.8 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-27.2024.3200.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdddcad4074b28d6cbd14394692aaee6d51d79c74d792ea3588d6431a614b525 |
|
MD5 | 239c816ce8ef7f7821249cae521d1ad4 |
|
BLAKE2b-256 | fcb84e0321bca973dbaecacc4238ad89cc3189d46fa1550e6dfa6a06599e1de0 |
Close
Hashes for lsst_resources-27.2024.3200-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f2150289183670b2c1a587d93355cc195f1b97a2b6f86abe9f5cfdc849ff158 |
|
MD5 | d61c279177e7c886ed9e759817bbcdc4 |
|
BLAKE2b-256 | 26ec64bac6e65f729cb2999796f3e7a72bb6f0542e4f1e836bec2431143e0348 |