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-27.2024.2500.tar.gz
(101.7 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-27.2024.2500.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c867fb77e31d199ea11992b8505313a9fcb449ecc3efa514d75e7faffcc1a84a |
|
MD5 | 834ae2fc1e8632a18f7bf6c574d9327b |
|
BLAKE2b-256 | 9681c2590b33492d6d1d5b255bc97b35c34b38a21f48cccf0b09288a51fbd71e |
Close
Hashes for lsst_resources-27.2024.2500-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 812b19ae6f0048073146fc7856ec67fa3fa1a297edc1632799d30265cca74bbc |
|
MD5 | 8df5be6b3e37faab9a1c96695deaeed4 |
|
BLAKE2b-256 | 3fa668bdc6857a934b028236a88f70d4c0a9f58ffdf5823a0790df6c0acb6741 |