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-30.0.8rc4.tar.gz (181.5 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-30.0.8rc4-py3-none-any.whl (154.2 kB view details)

Uploaded Python 3

File details

Details for the file lsst_resources-30.0.8rc4.tar.gz.

File metadata

  • Download URL: lsst_resources-30.0.8rc4.tar.gz
  • Upload date:
  • Size: 181.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lsst_resources-30.0.8rc4.tar.gz
Algorithm Hash digest
SHA256 db75e66b02bc550605547df986c6243ffc4358903542754135a45c110bcddf04
MD5 3a5c30e1c83f381db947d604e451abee
BLAKE2b-256 db49dd38bb65e36a1aaee49f373b8322e80a6f2ec0e0890cbb45a92410dd87cb

See more details on using hashes here.

File details

Details for the file lsst_resources-30.0.8rc4-py3-none-any.whl.

File metadata

File hashes

Hashes for lsst_resources-30.0.8rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 6933109cb1be7f2b6f34d1035d279a97b19d238a66998e79357fac8d48fb04f2
MD5 d93a91820289a8b8d8cf76da31904b45
BLAKE2b-256 bc4af19ac53e429c42698057a4cb66a778613889e13ab89b7657c9904f7657d3

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