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.3500.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ccc7d08c6c4d0ef4808af8b5083e6e2ed07ca7628c02d1688f5b584541e2d39 |
|
MD5 | 526d1c251817957d8d1705bd63ba1773 |
|
BLAKE2b-256 | 690217f59d8087015241c9fd18669c18152f1d4794987c81fc3a646a67a0631c |
Close
Hashes for lsst_resources-25.2023.3500-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9db4c754beeb00f721e57020b8ba108dc3e520854a293045211ec7e04bd14de9 |
|
MD5 | 99fad4c1bac788d566f47f58fc2d0dd3 |
|
BLAKE2b-256 | b34377a0f0a02828353260e132f759a12a62df279c73cda3561f6c8400b2896f |