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.2400.tar.gz
(101.7 kB
view hashes)
Built Distribution
Close
Hashes for lsst_resources-27.2024.2400.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d64dbce49e3d2e7e0c2a18ee3b048525a6f0a39dbf5b630ac176691437140913 |
|
MD5 | dbdce63c128355a0fba1126568f814fb |
|
BLAKE2b-256 | 83ab3fd1c17a15033253e9a88f507c1f073bd627e0bce2f494efd5adbb3ad579 |
Close
Hashes for lsst_resources-27.2024.2400-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6efc84c7c70624b4dbb07b8486c9abb374810bb61be65540f304ffabe8352ebf |
|
MD5 | 30176549a228ebf9ff0474d3eef072b8 |
|
BLAKE2b-256 | 2fd0b6bc372ff435da1a0f8c4f8e32a105fc11efc094c66a39d72427ac56e141 |