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.4200.tar.gz
(106.7 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-27.2024.4200.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b4482ad03b55a8a05c9a1ddd62642ef19c5aea7bdef33edaf424ec3c8d6192f |
|
MD5 | 570af6ceba11897d1f51f0d49e9da23c |
|
BLAKE2b-256 | 1b8a09443e1f013df91e3a090455e1282ffa573bc517ef347316b250ffa7527b |
Close
Hashes for lsst_resources-27.2024.4200-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2dfe88de52672cff70f08460ab188b27eb611d7a4e212ddec58be3505b9ca53 |
|
MD5 | 7c2955c0fe7ab8bb0111bd3b88e0afa7 |
|
BLAKE2b-256 | 2e332461db7470fe11026081ea8b4dda7d76867d39b62d349c5a3b8d27191455 |