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-26.2024.1600.tar.gz
(100.1 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-26.2024.1600.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8ccd5bbf95fa051d93dc77b1deda2c8588d831f52e941b4cba0a7350e33d2b3 |
|
MD5 | 7e551d68c07e20356f2c68d6e85e9041 |
|
BLAKE2b-256 | f0f4549b1bf93ea223d2ee7123587fb0165660da8f81dfc1b050cc23a236a878 |
Close
Hashes for lsst_resources-26.2024.1600-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ecac795588f40c4addbdb54b8dae2598f7aa29cc8ac5864de1114ffd35d62ae |
|
MD5 | 1e64b725caeeb442b40845c0c2c82950 |
|
BLAKE2b-256 | 51f7866c34238462bc9450c8b8c2383cc39d6505899f362b4c9ae13f32d237b7 |