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-29.2025.2700.tar.gz (160.8 kB view details)

Uploaded Source

Built Distribution

lsst_resources-29.2025.2700-py3-none-any.whl (138.0 kB view details)

Uploaded Python 3

File details

Details for the file lsst_resources-29.2025.2700.tar.gz.

File metadata

  • Download URL: lsst_resources-29.2025.2700.tar.gz
  • Upload date:
  • Size: 160.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lsst_resources-29.2025.2700.tar.gz
Algorithm Hash digest
SHA256 469d23d375cda204efb92012dddaba2c97bfa14de028bb0c67565adaeaad79fc
MD5 249cf5eb838cb6d257f55b8ff5a68f9c
BLAKE2b-256 a009e3b10f4de758fa3fbad09a96a09733e52f25d658d543b28ab26ea393dcd6

See more details on using hashes here.

File details

Details for the file lsst_resources-29.2025.2700-py3-none-any.whl.

File metadata

File hashes

Hashes for lsst_resources-29.2025.2700-py3-none-any.whl
Algorithm Hash digest
SHA256 918bcd7cc813b31815c01631fd809eeda2734b2d3f1de4db5df32b67fac7788c
MD5 48fe855f075e54114da135c127983d3c
BLAKE2b-256 0ab31eac130a1f8dab27beb63534130f41bbd7e81ed26562622b51e81f4acb6a

See more details on using hashes here.

Supported by

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