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-26.0.0a20230500.tar.gz (58.0 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-26.0.0a20230500-py3-none-any.whl (71.0 kB view details)

Uploaded Python 3

File details

Details for the file lsst-resources-26.0.0a20230500.tar.gz.

File metadata

File hashes

Hashes for lsst-resources-26.0.0a20230500.tar.gz
Algorithm Hash digest
SHA256 8bf32a91d6c3505f2a10fdb70dc4a64c2db3f801d0c8f38895e1ce55a69d3b8f
MD5 486c2d133f2a9ce7f1e431f0c2a50522
BLAKE2b-256 a131225778e738d8196a59aa0442a433f627643f68797e49472ba8e7b8594e59

See more details on using hashes here.

File details

Details for the file lsst_resources-26.0.0a20230500-py3-none-any.whl.

File metadata

File hashes

Hashes for lsst_resources-26.0.0a20230500-py3-none-any.whl
Algorithm Hash digest
SHA256 bfb7ef65d0596e4e78911e7fd7ece9c4a3919bc86ef50faea9d2e99be8df1971
MD5 aed447d8d71c33c05c31cead7301e53c
BLAKE2b-256 478b6190a0e52bc3485372a41ef553dfaf07cbbe2be2d61846f0610edf8695a3

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