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.2600.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 020677e05f6f391fe9a8cb95b30872210114cc8039157ce5fcc0533d72f1bb3d |
|
MD5 | 366bfe91f43beb8a459f2272a178ba68 |
|
BLAKE2b-256 | 8976c603c38d0830264e856e09c866204dedb37340ceac229aa86f02116d8d40 |
Close
Hashes for lsst_resources-25.2023.2600-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7913a9063b5ca1fc9429ceaf830fd1e270c3afb49dc2eeb8ed4708041efc447 |
|
MD5 | d82b094a9173baf9e1dd4df5cc811e0a |
|
BLAKE2b-256 | bf2b716c8cb7c9a6bbcc7771fa811e22319fe7408546c9a1c0f17e9152621c33 |