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.2900.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9d6580579e1fa5a88effcadcde152627e9b5d7fbd6077776e5bf1b3a5903ac7 |
|
MD5 | b5126db293e9e301eabf33ddf6350d1b |
|
BLAKE2b-256 | cf1ec61ef309800b8f7de6dfa1016d0f2428334aaa6c3f80e5aa966db1ca3300 |
Close
Hashes for lsst_resources-25.2023.2900-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7af4cf1264dc6a4bc6420edd8fda12033a2e17b359baf753c02000efa43f11f |
|
MD5 | 20941831c5d1e57abb616c73053a6cb8 |
|
BLAKE2b-256 | 3e15c0390c0d6ae1e4bd333705695a3e6955f852ecd72908d5b2c62bd91c6cc0 |