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.1000.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f158fb20ee5c273aeb4d61b23c09449dccd25359fdcfb443746d953faa2887cf |
|
MD5 | 290f5620cef3c602f4f504cc7d9a9764 |
|
BLAKE2b-256 | 073774d8daa081ad637bdb1a938c1846ce7897658eae4acabba0a5e8f8905433 |
Close
Hashes for lsst_resources-25.2023.1000-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9eb15c8f4f4cfb0101483162fb7715da31190501180a4bd039a3587eba01ba4 |
|
MD5 | 442b875c7a71caae60066d0a5958360e |
|
BLAKE2b-256 | badb2c78d9eda5d0a8ceb365c2f501ae1a2d8db57a54b473b1875c74c74ec162 |