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.1400.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58f20f3db45fdd9032927880036b53117ff0b82bcf041453053ac2658839b3df |
|
MD5 | 2f888cfc4fcb03bdc80eeba54b38e97f |
|
BLAKE2b-256 | 7287ca88c4160d8cecd7d244a680c2c1f19ae8c67553f3c1d55a5a6ac9aec525 |
Close
Hashes for lsst_resources-25.2023.1400-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9d85c225b5e0b8d581f6bd02dff927b389aa6aa33bbcf82eadba989fb69a6e8 |
|
MD5 | 8650f1bb4195633ec2f5dcf7f841ffc0 |
|
BLAKE2b-256 | 71d0fc2e591dad57d8b82e91d9fdba19e428d30679ec3e586991289d15d5b24e |