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.1200.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11abe0413b9d46bddc68741afaf165720a75c7d8f2e0999b1122fbb698e7a4a9 |
|
MD5 | fbc42ac34a215769df0128aa4dccfc70 |
|
BLAKE2b-256 | 878bcf7afa90e25f742ad21ec68f4664afc88522ead21a57f16e797eac2a97ad |
Close
Hashes for lsst_resources-25.2023.1200-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 996b72607e86e5f38582c513457115f860d47e5f66b2640ecc606291f5bb3d31 |
|
MD5 | 8730b5696dd16e4fcad7aa0275d795fe |
|
BLAKE2b-256 | 232691f925ac59cf97145b434407b8504e44ebd9c7af14522154e3862be640b0 |