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.0.0rc2.tar.gz
(90.4 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-26.0.0rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4882696eaa3af81ad87349762e029e73aa0766c3282e6df698a84c2bb9cf1998 |
|
MD5 | 57793af5087ffcfd097b350186d0979b |
|
BLAKE2b-256 | 4d71ff2de0e205abdfa5c1590405367a16d5c4ec2bcd48b826a7d6e20624b6d1 |