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.1700.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f7e5f6e0bfe3dfda9ecb8a28acfcd38bca6e5c6ff32d4cab10a14c22c483017 |
|
MD5 | 2e2043d510e00da8c228fae59f90f636 |
|
BLAKE2b-256 | d8230f2c51bc91d384233ed69a3473406f1c72d4e69c7413ffc0f11b7efa2285 |
Close
Hashes for lsst_resources-25.2023.1700-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86aa15e158958093186cacface0d670eba2de614dae8981f48de32bffc8b0684 |
|
MD5 | 48e8ca397aafec470182241c8a005bd2 |
|
BLAKE2b-256 | 4698a8237c31eddab9ef7bd9977e114a197b66f58925076a3debfb08d0a6327c |