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.400.tar.gz
(97.9 kB
view hashes)
Built Distribution
Close
Hashes for lsst-resources-26.2024.400.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fbd0791beeea550a6e682bffbb2663c99146cda9cae7af7109e5d57eeb4bbd9 |
|
MD5 | c96c1c1bdf7ac49bc424eb519cf074b2 |
|
BLAKE2b-256 | c27b0f7a0d06e26e5433b6a2261db5f2f9b4bf4f9c0cc2198c953ff280226d1d |
Close
Hashes for lsst_resources-26.2024.400-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1a1a3e95b1604d60041b57d604fc9604d802a78835df51529225ca20fb8303c |
|
MD5 | ff7fa13d619cf296e2a3ea561345f6cb |
|
BLAKE2b-256 | 7e6293e24ccea72023f2af439b12c9252dbcc031d02c2bd36455dc612ad9da0c |