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-26.2023.4500.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00b35c9df28bb005c7ed2b151b638729b81bbac4c91d728d6ecd18e177870f5c |
|
MD5 | 7baf61e85bc431bcc33d35a368e51d99 |
|
BLAKE2b-256 | 1d767ca7cc8cb951aab23c2de139c7556a58bdbe17292c3ed4385b3072768d3e |
Close
Hashes for lsst_resources-26.2023.4500-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e724c9efbd9a367c80872242ebb512b9d3ce4e891fc2b97af4fc7429c53becd0 |
|
MD5 | fb4a1541049f6f670f2a570f341ffbd7 |
|
BLAKE2b-256 | efbd215e9e1a5533a36928555bb2fdb86f8583faad26fbdb1c14da14256983c3 |