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.2800.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35344d061f58a68c768110965c110430b4c020803815c94a42e6289422774023 |
|
MD5 | b9e7aebe512004c33ddb12a167723163 |
|
BLAKE2b-256 | 94ae8cfd0b16f7a06a25f5b37442d20c8c7ccd27c1826e30f55dce27f4f93fd6 |
Close
Hashes for lsst_resources-25.2023.2800-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f9f5335b5c8b4b0d8da3034122ec096ed2b9c6b537fbbe6dee650f633bfa284 |
|
MD5 | a7ace4bd26e634a6c1ca05c45c9543ac |
|
BLAKE2b-256 | 5346676880580e25027a9965425795b6d8554d2fd9e7ab5e02a3afdd2411ecf0 |