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-25.2023.1800.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9308ab98835dc5263f2443c0db779535c83467eb7a3294b896e53b288cfe4479 |
|
MD5 | ce5fc6279807cd9c8fbd9396d1ca9740 |
|
BLAKE2b-256 | d07b8baaa9d389c5d13cf5c6db0d757ef5b630c08fd04e086bf2fe5c6194f090 |
Close
Hashes for lsst_resources-25.2023.1800-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f50e877cb1c23d898c92705a583ac63a3338eb0b5d6b0e886ed464af89d1439 |
|
MD5 | b73a406a50b2b3810dcd5f6a2bdb17d0 |
|
BLAKE2b-256 | 9c5179038b0f31a98b6f1da408e945f0bf4fc583e1fe567ee754f3a004a7bea1 |