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
Built Distribution
Close
Hashes for lsst-resources-26.2023.4100.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f268823e5b18e2b4569ffedfffdb51e56ce015c37308bf7a864b38960a594ed6 |
|
MD5 | 9f3847f4791674e99e261745d861c76f |
|
BLAKE2b-256 | 2ae6b6d37aecf7a5533c0c8675ebc1297d41dcd0aca2af787256faeb96562f26 |
Close
Hashes for lsst_resources-26.2023.4100-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad0c7d349514624f9a77ad5010bf5c7ef7536ef5ab796a918c65c4e06c3fcc08 |
|
MD5 | 254f68600423108094d45ca23ccb1c6f |
|
BLAKE2b-256 | 33cabb31b8b28137963c6d795beaf8257526c7d2a214dcc8d7523a117e5fb53d |