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-26.2023.5000.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d811756481da5bffd5c40e708632e6823d423aa3e894ea6c12e72e96b82eaae8 |
|
MD5 | 662802ec2e5155271dee7656c7b89fff |
|
BLAKE2b-256 | 48041f76d69cc582357fd56cce007f8323433e113be76ca5fca336b19c5923ff |
Close
Hashes for lsst_resources-26.2023.5000-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abac7836e723959456b128c5785a5d3bf21fc46b9f43d414fc0725868feacd59 |
|
MD5 | 63c6dd2547f1aea999a5d6034c38cf73 |
|
BLAKE2b-256 | 1c7a7e29e580b77dbb6be5618f9d4e4dffe3f95ccffc45cfdb0f2017cc7d951c |