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.900.tar.gz
(77.6 kB
view hashes)
Built Distribution
Close
Hashes for lsst-resources-25.2023.900.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d75ff84acff95e3ab4d374a5df2c250153417ab01c3f7876e15b4ff75f5b3be2 |
|
MD5 | 2b8d8fcdc0210d6c4e28290da1cdb7f9 |
|
BLAKE2b-256 | 443b0f203718889fd15d89b5ff27f6a2551449b6630d9889df95fc30119bd440 |
Close
Hashes for lsst_resources-25.2023.900-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ac9234c03809eb696077b56b8db04747198a9668c54ad8225e984b7a70ed46d |
|
MD5 | 0109694ad63c551a03d25e72b5db2462 |
|
BLAKE2b-256 | 49ad37a6b79a4fdff189a3954ee2594bb318a0ba6ca28efa392ca21c0e6fb342 |