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.4100.tar.gz
(106.5 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-27.2024.4100.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb141792984ec2c459a7ceed31e1e052fa7a4387a9174665d0306dcc1723eadd |
|
MD5 | 831f4778e1aac7c0675ce79d49d9d182 |
|
BLAKE2b-256 | 4601ae8807aeddce3dd503f680ad15bfaa9e37d328db9957430a1e56746de26e |
Close
Hashes for lsst_resources-27.2024.4100-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7471ca3644f2ad809212d4f897a4c6ab2123ab07f4def2ca8e0b670b63283bcd |
|
MD5 | 0cc6328998e5feb3c8a79437fd29ec46 |
|
BLAKE2b-256 | 50a424f8a67d89356251ba81337a3c3c458975dde58fb286b22975b4453fa37a |