lsst-resources


Namelsst-resources JSON
Version 26.2024.1700 PyPI version JSON
download
home_pageNone
SummaryAn abstraction layer for reading and writing from URI file resources.
upload_time2024-04-25 17:12:40
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11.0
licenseBSD 3-Clause License
keywords lsst
VCS
bugtrack_url
requirements No requirements were recorded.
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/17/45/0c9bf325e837cd88f7d4cef97609c53163a11b9d7b04c07dd7459bf00f48/lsst_resources-26.2024.1700.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": "26.2024.1700",
    "project_urls": {
        "Homepage": "https://github.com/lsst/resources"
    },
    "split_keywords": [
        "lsst"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d13180b9454ae8f383164af695cc6a7bcfa84eb789a42e887dd177e88975bea7",
                "md5": "22a605e8d881e26c61d2c2910ab564bc",
                "sha256": "66283125c422da241306963c4b373c69a7297ffef0c12f5e4ddcc0293de52038"
            },
            "downloads": -1,
            "filename": "lsst_resources-26.2024.1700-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "22a605e8d881e26c61d2c2910ab564bc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11.0",
            "size": 91955,
            "upload_time": "2024-04-25T17:12:37",
            "upload_time_iso_8601": "2024-04-25T17:12:37.852833Z",
            "url": "https://files.pythonhosted.org/packages/d1/31/80b9454ae8f383164af695cc6a7bcfa84eb789a42e887dd177e88975bea7/lsst_resources-26.2024.1700-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "17450c9bf325e837cd88f7d4cef97609c53163a11b9d7b04c07dd7459bf00f48",
                "md5": "add9e22bd4719f557e55d0c081a223f5",
                "sha256": "c3df09eb85b9c2218157eae38f0de9d372d7fe52ed56c03dbb86ff8b64b00d14"
            },
            "downloads": -1,
            "filename": "lsst_resources-26.2024.1700.tar.gz",
            "has_sig": false,
            "md5_digest": "add9e22bd4719f557e55d0c081a223f5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11.0",
            "size": 100122,
            "upload_time": "2024-04-25T17:12:40",
            "upload_time_iso_8601": "2024-04-25T17:12:40.199469Z",
            "url": "https://files.pythonhosted.org/packages/17/45/0c9bf325e837cd88f7d4cef97609c53163a11b9d7b04c07dd7459bf00f48/lsst_resources-26.2024.1700.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-25 17:12:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lsst",
    "github_project": "resources",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "lsst-resources"
}
        
Elapsed time: 0.25337s