safir


Namesafir JSON
Version 9.1.0 PyPI version JSON
download
home_pageNone
SummaryThe Rubin Observatory SQuaRE framework for FastAPI services.
upload_time2024-12-18 00:27:13
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseMIT License Copyright (c) 2020-2024 Association of Universities for Research in Astronomy, Inc. (AURA) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords rubin lsst
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Safir

Safir is Rubin Observatory's library for building [FastAPI](https://fastapi.tiangolo.com/) services for the [Rubin Science Platform (Phalanx)](https://github.com/lsst-sqre/phalanx) and [Roundtable](https://github.com/lsst-sqre/roundtable) Kubernetes clusters.
Safir is developed, maintained, and field tested by the SQuaRE team.

Safir is available from [PyPI](https://pypi.org/project/safir/):

```sh
pip install safir
```

The best way to create a new FastAPI/Safir service is with the [`fastapi_safir_app` template](https://github.com/lsst/templates/blob/main/project_templates/fastapi_safir_app).

Read more about Safir at https://safir.lsst.io.

## Features

- Set up an `httpx.AsyncClient` as part of the application start-up and shutdown lifecycle.
- Set up structlog-based logging.
- Middleware for attaching request context to the logger to include a request UUID, method, and route in all log messages.
- Process `X-Forwarded-*` headers to determine the source IP and related information of the request.
- Gather and structure standard metadata about your application.
- Operate a distributed Redis job queue with [arq](https://arq-docs.helpmanual.io) using convenient clients, testing mocks, and a FastAPI dependency.

## Developing Safir

See https://safir.lsst.io/dev/development.html.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "safir",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "rubin, lsst",
    "author": null,
    "author_email": "\"Association of Universities for Research in Astronomy, Inc. (AURA)\" <sqre-admin@lists.lsst.org>",
    "download_url": "https://files.pythonhosted.org/packages/9f/16/23f7acf80a845ec9eb93a229d676008003e238b33a2b57588b6184567424/safir-9.1.0.tar.gz",
    "platform": null,
    "description": "# Safir\n\nSafir is Rubin Observatory's library for building [FastAPI](https://fastapi.tiangolo.com/) services for the [Rubin Science Platform (Phalanx)](https://github.com/lsst-sqre/phalanx) and [Roundtable](https://github.com/lsst-sqre/roundtable) Kubernetes clusters.\nSafir is developed, maintained, and field tested by the SQuaRE team.\n\nSafir is available from [PyPI](https://pypi.org/project/safir/):\n\n```sh\npip install safir\n```\n\nThe best way to create a new FastAPI/Safir service is with the [`fastapi_safir_app` template](https://github.com/lsst/templates/blob/main/project_templates/fastapi_safir_app).\n\nRead more about Safir at https://safir.lsst.io.\n\n## Features\n\n- Set up an `httpx.AsyncClient` as part of the application start-up and shutdown lifecycle.\n- Set up structlog-based logging.\n- Middleware for attaching request context to the logger to include a request UUID, method, and route in all log messages.\n- Process `X-Forwarded-*` headers to determine the source IP and related information of the request.\n- Gather and structure standard metadata about your application.\n- Operate a distributed Redis job queue with [arq](https://arq-docs.helpmanual.io) using convenient clients, testing mocks, and a FastAPI dependency.\n\n## Developing Safir\n\nSee https://safir.lsst.io/dev/development.html.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2020-2024 Association of Universities for Research in Astronomy, Inc. (AURA)  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "The Rubin Observatory SQuaRE framework for FastAPI services.",
    "version": "9.1.0",
    "project_urls": {
        "Change log": "https://safir.lsst.io/changelog.html",
        "Homepage": "https://safir.lsst.io",
        "Issue tracker": "https://github.com/lsst-sqre/safir/issues",
        "Source": "https://github.com/lsst-sqre/safir"
    },
    "split_keywords": [
        "rubin",
        " lsst"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de1dd5c4f14f1e32119aba2ffb0ebe45b401f225a441a7357d0ed77b4538e9aa",
                "md5": "ff0a81b3467a659f1f88b3e13b474a73",
                "sha256": "38718de0d2e5f9623eddc511700a15fb56fee88da7bba0e1210dc831276aa9aa"
            },
            "downloads": -1,
            "filename": "safir-9.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ff0a81b3467a659f1f88b3e13b474a73",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 148119,
            "upload_time": "2024-12-18T00:27:10",
            "upload_time_iso_8601": "2024-12-18T00:27:10.707232Z",
            "url": "https://files.pythonhosted.org/packages/de/1d/d5c4f14f1e32119aba2ffb0ebe45b401f225a441a7357d0ed77b4538e9aa/safir-9.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9f1623f7acf80a845ec9eb93a229d676008003e238b33a2b57588b6184567424",
                "md5": "7cd8f691bbfde538dc236e0c6255097f",
                "sha256": "630b2e59ae87edab25fb2c3d5ccd6ca156c0d525eb543624532bbf4fd3c85536"
            },
            "downloads": -1,
            "filename": "safir-9.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7cd8f691bbfde538dc236e0c6255097f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 177213,
            "upload_time": "2024-12-18T00:27:13",
            "upload_time_iso_8601": "2024-12-18T00:27:13.066825Z",
            "url": "https://files.pythonhosted.org/packages/9f/16/23f7acf80a845ec9eb93a229d676008003e238b33a2b57588b6184567424/safir-9.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-18 00:27:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lsst-sqre",
    "github_project": "safir",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "safir"
}
        
Elapsed time: 0.54509s