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-26.2024.300.tar.gz
(96.3 kB
view hashes)
Built Distribution
Close
Hashes for lsst-resources-26.2024.300.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a805b4416d9c8c09b2774a0bcd7506a4a94bae835e34b88b8fec303cbdcd45f2 |
|
MD5 | 513389e0a90fddd87946e8a397fa25c4 |
|
BLAKE2b-256 | 1185afe41538aa63a096a715b077eedb40c1a564c98c9a20e2e47fc07028384d |
Close
Hashes for lsst_resources-26.2024.300-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ef25a509c2896e57ce502a654d2483d32b1bfbd6896038293fa60685a6eac7b |
|
MD5 | a154b4d4df8725827392c8720bae921e |
|
BLAKE2b-256 | 7d5cd0df527388ac2616f13ee93582d0c2ede18d8e927cd4d46b58e28aa23e07 |