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
, http[s]
, and resource
(Python package resource) URI schemes as well as a scheme-less URI (relative local file path).
The is package provides the main file abstraction layer in the Rubin Observatory Data Butler datastore.
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.0.0a20223500.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e7c328cc2323a63de0d2271b93089d2ca6c5d4d371e19fc45d733bf994237c9 |
|
MD5 | 071a4520f3d3402268206e885e4f9058 |
|
BLAKE2b-256 | bf3ddd582e6c5b69935578249b79a491287cf9b1e7bbdbda1d8bd2b2170bd3e2 |
Close
Hashes for lsst_resources-25.0.0a20223500-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77564eca4928bf6fb90f08003a6f98d2456721c15a8f155b8920476c2104a969 |
|
MD5 | 145f2ceb9b171cdeec24dd5cabe218b5 |
|
BLAKE2b-256 | 4da733bf4795901a3384590dee297d85fc28a6c245560a8458570d2f5b7a6408 |