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.2900.tar.gz
(101.8 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-27.2024.2900.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1a87c6cbf045930ce6fa768000af51ffab02a656a5ef055353a1a92e92e4504 |
|
MD5 | cf2be0bcf09fb50eaf128a1356917b8f |
|
BLAKE2b-256 | 42b772de8b978eeb38f07a0d4ef0589251f0fa1bbd729bac1f2464cdf0e56a65 |
Close
Hashes for lsst_resources-27.2024.2900-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d6760ec005db30d7cb3d499a883dd4e10c0b389e0fe1b2223c3f25066516016 |
|
MD5 | c1ce12f8f8dd0e996a3cf6d9b9a2acfe |
|
BLAKE2b-256 | 80c9badcd1d2db11df9928d7c71f27856ef6b15cbd5960a5e717e0a116cf59ac |