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.4200.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1ee520c6207e1ed9fa75ee4499b6946b2c535808d8e3df9d91b1d2c7b3fb63d |
|
MD5 | c44eacd548ef12e5be842cf0aed1d9ba |
|
BLAKE2b-256 | aacb4a02c6e6041694e6a1f77beca01c2aff597aa649c4cad428a0215a4a9f38 |
Close
Hashes for lsst_resources-26.2023.4200-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 453ed5455680afff426d87a10783bf824c9539555354fde534f02d9745118ef1 |
|
MD5 | b8e30816b4c5abc401aae8ab31543f63 |
|
BLAKE2b-256 | f00b6ca8a14396eb56faa60a64eaee09a9d3cb160dfa86511a509b23a6908418 |