Skip to main content

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, http[s], and resource (Python package resource) URI schemes as well as a scheme-less URI (relative local file path).

The is package provides the main file abstraction layer in the Rubin Observatory Data Butler datastore.

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.0a20223500.tar.gz (50.4 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.0a20223500-py3-none-any.whl (60.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lsst-resources-25.0.0a20223500.tar.gz
  • Upload date:
  • Size: 50.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for lsst-resources-25.0.0a20223500.tar.gz
Algorithm Hash digest
SHA256 9e7c328cc2323a63de0d2271b93089d2ca6c5d4d371e19fc45d733bf994237c9
MD5 071a4520f3d3402268206e885e4f9058
BLAKE2b-256 bf3ddd582e6c5b69935578249b79a491287cf9b1e7bbdbda1d8bd2b2170bd3e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lsst_resources-25.0.0a20223500-py3-none-any.whl
Algorithm Hash digest
SHA256 77564eca4928bf6fb90f08003a6f98d2456721c15a8f155b8920476c2104a969
MD5 145f2ceb9b171cdeec24dd5cabe218b5
BLAKE2b-256 4da733bf4795901a3384590dee297d85fc28a6c245560a8458570d2f5b7a6408

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