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.3300.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f1099bcaf0eb08046c2a1eca2b40f3a7516994df6e5510d58b0fa5d0c09cca |
|
MD5 | dd28a6710552932486c9812c4ae7da0e |
|
BLAKE2b-256 | 2250d2ff6e1a5b80d5d70f3f7952b4074074a8fda4252fc6cb0fbc8868ddf4fb |
Close
Hashes for lsst_resources-25.2023.3300-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 507b55bef2291564bd75c6bcc9d2d8d6eab6522bc62e1aa84b39ca1f78d72a8f |
|
MD5 | fee8513014f471cca2c9ff6673c90f17 |
|
BLAKE2b-256 | cc70c64d80c38b5da62a6eb5dc75d18b2823eff50f163b94ecf2cccdc185e390 |