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.3600.tar.gz
(103.3 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-27.2024.3600.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27254eed69f9731117a96ac26d91f68b95c437d59193481c66aa821c54727350 |
|
MD5 | a64d2328915bc9e1ea175d4816a1b6b2 |
|
BLAKE2b-256 | b72b02e5aa59ab29cdc361657b82dcfa5bdade1e881c06ea06bf8d38b8d533d2 |
Close
Hashes for lsst_resources-27.2024.3600-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72e3f47935ea9c58b94f65984725471eae0d901d250fb26cd5e3dbed46606b09 |
|
MD5 | 49547fce9ff28f4a6b24fcdad36cb6fc |
|
BLAKE2b-256 | 91339e8fd2314b43159b11aa18e0ffd78a8615c930833dc6e6efa7efbcadd1b4 |