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-25.2023.700.tar.gz
(76.5 kB
view hashes)
Built Distribution
Close
Hashes for lsst-resources-25.2023.700.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e119f1fe9fa4ff11f8e95b88a2404243ed268d16b0f110acdc8a9bfd7b98b3b6 |
|
MD5 | ecc3e058843cb2b46f2766deaf887330 |
|
BLAKE2b-256 | e8a9da45cdfed18e3eb01312bef32ec2ac51bb8a1115d84584b3674a4f03a4c4 |
Close
Hashes for lsst_resources-25.2023.700-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36b1e8c0ed602787cac8483e6cb24fbaaea4a9e8fe242751ea60a1370733b2bb |
|
MD5 | 9bcdbb7b56abcceb3f6a1eab44593722 |
|
BLAKE2b-256 | 2afd7a088b64272773a82d57ba5814266384e9c8c820c8a51beb3eca8d0b8a74 |