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.2024.3500.tar.gz
(103.3 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-27.2024.3500.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b999d4f3435f75df48b9cc4822da4e0bcfdc4d0f46e381e7594e17f3ea573e4 |
|
MD5 | c4e1283906bc6407bdd81f9530ab6087 |
|
BLAKE2b-256 | 6c5643591b0e28f8da097a4d67187915f1c5cc8e5d19782886a5da588ad8078f |
Close
Hashes for lsst_resources-27.2024.3500-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec56ccd65d55817927bb29b0a38f1d2e9b0ce611f6b5ef9eaa94b34f3377c9a8 |
|
MD5 | b422b15495cef8e15e085902b427b165 |
|
BLAKE2b-256 | 786006d820e0e07d6cbf2b133b9255e2a70c99bee0ff59b1ce9eccd4d8133b72 |