lsst-resources


Namelsst-resources JSON
Version 29.2025.3100 PyPI version JSON
download
home_pageNone
SummaryAn abstraction layer for reading and writing from URI file resources.
upload_time2025-07-31 08:43:05
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11.0
licenseBSD 3-Clause License
keywords lsst
VCS
bugtrack_url
requirements lsst-utils backoff boto3 botocore moto responses urllib3 requests defusedxml
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # lsst.resources

[![pypi](https://img.shields.io/pypi/v/lsst-resources.svg)](https://pypi.org/project/lsst-resources/)
[![codecov](https://codecov.io/gh/lsst/resources/branch/main/graph/badge.svg?token=jGf63Xc1Ar)](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/b0/39/9af8b8c214bc93542c9b2f7d8c89c4c187de315d565ed140446dbf701885/lsst_resources-29.2025.3100.tar.gz",
    "platform": null,
    "description": "# lsst.resources\n\n[![pypi](https://img.shields.io/pypi/v/lsst-resources.svg)](https://pypi.org/project/lsst-resources/)\n[![codecov](https://codecov.io/gh/lsst/resources/branch/main/graph/badge.svg?token=jGf63Xc1Ar)](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.3100",
    "project_urls": {
        "Homepage": "https://github.com/lsst/resources"
    },
    "split_keywords": [
        "lsst"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "27fd7993a868c53191a38bd3250a88220182335489e2cd289af2ee14bdc8e75b",
                "md5": "f0bd8268caa7cb93fbdafe1f52272b85",
                "sha256": "0563a05b796ba0520733091ac8dc204b3568ba4ebf561465054f0a00969cfee9"
            },
            "downloads": -1,
            "filename": "lsst_resources-29.2025.3100-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f0bd8268caa7cb93fbdafe1f52272b85",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11.0",
            "size": 138133,
            "upload_time": "2025-07-31T08:43:03",
            "upload_time_iso_8601": "2025-07-31T08:43:03.626873Z",
            "url": "https://files.pythonhosted.org/packages/27/fd/7993a868c53191a38bd3250a88220182335489e2cd289af2ee14bdc8e75b/lsst_resources-29.2025.3100-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b0399af8b8c214bc93542c9b2f7d8c89c4c187de315d565ed140446dbf701885",
                "md5": "59d512deacb8def52a2f28338ba83807",
                "sha256": "5755bd2aa0ac0fab2b563a62cd15ee9b7beaa57eb21a6cf72862dbce0542440d"
            },
            "downloads": -1,
            "filename": "lsst_resources-29.2025.3100.tar.gz",
            "has_sig": false,
            "md5_digest": "59d512deacb8def52a2f28338ba83807",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11.0",
            "size": 161057,
            "upload_time": "2025-07-31T08:43:05",
            "upload_time_iso_8601": "2025-07-31T08:43:05.014777Z",
            "url": "https://files.pythonhosted.org/packages/b0/39/9af8b8c214bc93542c9b2f7d8c89c4c187de315d565ed140446dbf701885/lsst_resources-29.2025.3100.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-31 08:43:05",
    "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": [
                [
                    "!=",
                    "5.0.0"
                ],
                [
                    "!=",
                    "5.0.2"
                ],
                [
                    "!=",
                    "5.0.3"
                ],
                [
                    ">=",
                    "4"
                ],
                [
                    "!=",
                    "5.0.1"
                ]
            ]
        },
        {
            "name": "responses",
            "specs": [
                [
                    ">=",
                    "0.12.0"
                ]
            ]
        },
        {
            "name": "urllib3",
            "specs": [
                [
                    ">=",
                    "1.25.10"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2.26.0"
                ]
            ]
        },
        {
            "name": "defusedxml",
            "specs": []
        }
    ],
    "lcname": "lsst-resources"
}
        
Elapsed time: 0.65985s