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.3400.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9503cca166ca37cea33451558136ef263db91f02d1e2c73c108dc3ebfcfbafe9 |
|
MD5 | 9e6ce3f94080990b9da37b5c863cf708 |
|
BLAKE2b-256 | b8f741a4ee6225be9603a4744ee70b707c06443a1532c854bd23a2861e3fab5e |
Close
Hashes for lsst_resources-25.2023.3400-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba54d7898ee7d39c5b242b6404d6bdd98ea9cc6faf0337e335f13d457bda0222 |
|
MD5 | e6e520e541f748b028085d9e2b77adb9 |
|
BLAKE2b-256 | 0e3ce86026551b9cd6488756dddba7f9cd77caddc4184c5cbc591e716ebdf33d |