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-24.1.0rc1.tar.gz
(62.4 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-24.1.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 174860f257ec69933e0caf3308921e42d96736dfe8e505cc31cf64d8eeac6cc0 |
|
MD5 | ba08defa821aa73f84cd3bf66d54c9e9 |
|
BLAKE2b-256 | 783a5741ba46d4b26b43e05c056df364b911aa31cce968c0b0cd14cb60d5f132 |