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.2200.tar.gz
(100.7 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-27.2024.2200.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 400d5e73d2ff4c9ac910bf002dedbdfcdc5cf6e19893f0203d7714234ffc9557 |
|
MD5 | 732a6843e1f7a28b23d5713d9513653a |
|
BLAKE2b-256 | 8fff81b3c110718bf4ebba1a35a86ef3e7803b6d2b2a834c1130fb45bb2fd820 |
Close
Hashes for lsst_resources-27.2024.2200-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03fdd479b2ed89d597a9ddeca79a67028662e9dc25fdfa0ab774e5e7c159ff79 |
|
MD5 | 7cdd51b2bd2a9894dbe4aa11077121e2 |
|
BLAKE2b-256 | 8ada697a622bb008f54a07349bda5819bacd838734d9937d12bbce4ca301c6bd |