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.0.0.tar.gz
(101.2 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-27.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1be57ddae16a794e104af8a4d424f5ea5f9fd314897432473ccdcf36d26855f6 |
|
MD5 | 7483e25a86545763ea24a7c19767b53b |
|
BLAKE2b-256 | f887d93ab3078d5883a194944c426e0680f1bd548867a8d65d3d1ce941025ab3 |