Skip to main content

An abstraction layer for reading and writing from URI file resources.

Project description

lsst.resources

pypi codecov

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.0.0a20224500.tar.gz (51.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lsst_resources-25.0.0a20224500-py3-none-any.whl (60.5 kB view details)

Uploaded Python 3

File details

Details for the file lsst-resources-25.0.0a20224500.tar.gz.

File metadata

File hashes

Hashes for lsst-resources-25.0.0a20224500.tar.gz
Algorithm Hash digest
SHA256 e48ed8a67e7eb5396317a8563d040f055bfc2c70f8a91f3880c291860c5ef2ab
MD5 f0667d23085460a1651774ba92e76e5b
BLAKE2b-256 caac6005c2e4d1e652a7e2754bc5c89d707b934483818d6cad0bc8a65ed63106

See more details on using hashes here.

File details

Details for the file lsst_resources-25.0.0a20224500-py3-none-any.whl.

File metadata

File hashes

Hashes for lsst_resources-25.0.0a20224500-py3-none-any.whl
Algorithm Hash digest
SHA256 fe07a7d0d93edd51d48548a15fe09ff45d50e237c3ee0cf69f44f82a9ddd3b65
MD5 efcab64f627a0d5df793613650a27ded
BLAKE2b-256 b692846fc4d7d3d4548bd4f1ea8cf84137902fd1030b607e2760af80522eed5b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page