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
Built Distribution
Close
Hashes for lsst-resources-25.2023.3000.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 870f9b6e6058b369216cb26b9a4cfc7b79853aa5fdba98c0357dfbb7fdd7d555 |
|
MD5 | c9577cff0c0b7ce823aba3c366dbae2a |
|
BLAKE2b-256 | ff6bfc61140f6adb41a7e5167b1f1f2d35df2b9cd909324bb06f514f2e9a34b6 |
Close
Hashes for lsst_resources-25.2023.3000-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f936c13c20854b78b13ceb70f3edc1f836e34570f6e15e3ff1e036c37a12aa2 |
|
MD5 | d7b5a3844e1463fa5abc27c72cb15735 |
|
BLAKE2b-256 | 1513185e8c4610d36b44a678f803c021e5599244fd9569fea0dfdf4cc1d85a8c |