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.3000.tar.gz
(101.8 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-27.2024.3000.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c562ff1f8994d86daee512a8a74736f5ea6df806f4f8c34bfdcdaf90b784f96 |
|
MD5 | 071c0b66bb8128f4e1d82fe94529ae83 |
|
BLAKE2b-256 | f55a56c20535a7d2ca655c73bffc680def6b0db64a495e1ff751cfc05b2a26ca |
Close
Hashes for lsst_resources-27.2024.3000-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72a2069aed1a7dac6f6a75962f43b9c825378d57bbfa1cdc8c670ce4ad94ee66 |
|
MD5 | a766f788e587ecb66e6c3321acfdb0ac |
|
BLAKE2b-256 | c845bb60a6a2b281e454bf738bc04e2d76dfea6ff7df0f56883064f3e319277d |