# lsst.resources
[](https://pypi.org/project/lsst-resources/)
[](https://codecov.io/gh/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`, `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](https://github.com/lsst/daf_butler) datastore.
PyPI: [lsst-resources](https://pypi.org/project/lsst-resources/)
Raw data
{
"_id": null,
"home_page": null,
"name": "lsst-resources",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11.0",
"maintainer_email": null,
"keywords": "lsst",
"author": null,
"author_email": "Rubin Observatory Data Management <dm-admin@lists.lsst.org>",
"download_url": "https://files.pythonhosted.org/packages/64/e3/fd3757f00296fb57b1780634d658427bbb2ad1dfa8b5004810530243558e/lsst_resources-29.2025.2800.tar.gz",
"platform": null,
"description": "# lsst.resources\n\n[](https://pypi.org/project/lsst-resources/)\n[](https://codecov.io/gh/lsst/resources)\n\n\nThis package provides a simple interface to local or remote files using URIs.\n\n```\nfrom lsst.resources import ResourcePath\n\nfile_uri = ResourcePath(\"/data/file.txt\")\ncontents = file_uri.read()\n\ns3_uri = ResourcePath(\"s3://bucket/data/file.txt\")\ncontents = s3_uri.read()\n```\n\nThe 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).\n\nThe package provides the main file abstraction layer in the [Rubin Observatory Data Butler](https://github.com/lsst/daf_butler) datastore.\n\nPyPI: [lsst-resources](https://pypi.org/project/lsst-resources/)\n",
"bugtrack_url": null,
"license": "BSD 3-Clause License",
"summary": "An abstraction layer for reading and writing from URI file resources.",
"version": "29.2025.2800",
"project_urls": {
"Homepage": "https://github.com/lsst/resources"
},
"split_keywords": [
"lsst"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "fffc0ab012755b0469bff2884282d1077dadda6bd608c8086aadc690fa9e806e",
"md5": "bd156197503e140b71a19d1d05daa53a",
"sha256": "8b63253fe0003b34fcfa52683ece17c64f6132dfe399e552764261d693e61ccd"
},
"downloads": -1,
"filename": "lsst_resources-29.2025.2800-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bd156197503e140b71a19d1d05daa53a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11.0",
"size": 137952,
"upload_time": "2025-07-11T19:41:19",
"upload_time_iso_8601": "2025-07-11T19:41:19.985393Z",
"url": "https://files.pythonhosted.org/packages/ff/fc/0ab012755b0469bff2884282d1077dadda6bd608c8086aadc690fa9e806e/lsst_resources-29.2025.2800-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "64e3fd3757f00296fb57b1780634d658427bbb2ad1dfa8b5004810530243558e",
"md5": "a036c15cd5ab358dedf126ecdedb46f5",
"sha256": "71c33af5a70547bbf1714a0599f5df90a53076dbc3f8940bad6b0a5ad8b27775"
},
"downloads": -1,
"filename": "lsst_resources-29.2025.2800.tar.gz",
"has_sig": false,
"md5_digest": "a036c15cd5ab358dedf126ecdedb46f5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11.0",
"size": 160817,
"upload_time": "2025-07-11T19:41:22",
"upload_time_iso_8601": "2025-07-11T19:41:22.346934Z",
"url": "https://files.pythonhosted.org/packages/64/e3/fd3757f00296fb57b1780634d658427bbb2ad1dfa8b5004810530243558e/lsst_resources-29.2025.2800.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-11 19:41:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lsst",
"github_project": "resources",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "lsst-utils",
"specs": []
},
{
"name": "backoff",
"specs": [
[
">=",
"1.10"
]
]
},
{
"name": "boto3",
"specs": [
[
">=",
"1.13"
]
]
},
{
"name": "botocore",
"specs": [
[
">=",
"1.15"
]
]
},
{
"name": "moto",
"specs": [
[
">=",
"4"
],
[
"!=",
"5.0.0"
],
[
"!=",
"5.0.3"
],
[
"!=",
"5.0.1"
],
[
"!=",
"5.0.2"
]
]
},
{
"name": "responses",
"specs": [
[
">=",
"0.12.0"
]
]
},
{
"name": "urllib3",
"specs": [
[
">=",
"1.25.10"
]
]
},
{
"name": "requests",
"specs": [
[
">=",
"2.26.0"
]
]
},
{
"name": "defusedxml",
"specs": []
}
],
"lcname": "lsst-resources"
}