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-25.2023.600.tar.gz
(75.9 kB
view hashes)
Built Distribution
Close
Hashes for lsst-resources-25.2023.600.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 924735dea0c86d67f6a9bb119139e7a1abe2d174dd7c1ecf25ec353c95922636 |
|
MD5 | ad37370eea22089b6d22ce6a722ffab1 |
|
BLAKE2b-256 | 2d438bd60d37344177ee0ddd72be5a89a13ba57af721c0cc15c90b0d0de0feea |
Close
Hashes for lsst_resources-25.2023.600-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f1be4825421782485e205d1d0d9428deeadde611dc7a38e7f799188ccd621cf |
|
MD5 | 443cc9d90ab1569514414ef3a259b8f3 |
|
BLAKE2b-256 | 992708a13531e4bed08a2b197d66f4032c183221e1c1962cbe845c08afdba40b |