{"id":41173978,"url":"https://github.com/enchant97/quart-redis","last_synced_at":"2026-01-22T19:50:54.751Z","repository":{"id":57459301,"uuid":"370370585","full_name":"enchant97/quart-redis","owner":"enchant97","description":"A easy way of setting up a redis connection in quart.","archived":false,"fork":false,"pushed_at":"2025-02-22T17:11:56.000Z","size":29,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-09T19:11:09.820Z","etag":null,"topics":["async","asyncio","cache","python","quart","redis"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/quart-redis/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enchant97.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://www.buymeacoffee.com/leospratt"}},"created_at":"2021-05-24T13:56:47.000Z","updated_at":"2025-03-16T15:50:17.000Z","dependencies_parsed_at":"2024-06-20T21:58:27.029Z","dependency_job_id":"e062cfb2-fd33-4ee2-8ccd-5b124a521f3b","html_url":"https://github.com/enchant97/quart-redis","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"11f321d74d9bc5674b0a05eb86df46e324a1d3e2"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/enchant97/quart-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enchant97%2Fquart-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enchant97%2Fquart-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enchant97%2Fquart-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enchant97%2Fquart-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enchant97","download_url":"https://codeload.github.com/enchant97/quart-redis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enchant97%2Fquart-redis/sbom","scorecard":{"id":376653,"data":{"date":"2025-08-11","repo":{"name":"github.com/enchant97/quart-redis","commit":"b9032fc845d9b83ff8d83cf3a7dc251b9437966c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.7,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 3/25 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/enchant97/quart-redis/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/enchant97/quart-redis/python-publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/python-publish.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/enchant97/quart-redis/python-publish.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:21","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/python-publish.yml:8"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T14:24:40.863Z","repository_id":57459301,"created_at":"2025-08-18T14:24:40.864Z","updated_at":"2025-08-18T14:24:40.864Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28669732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T19:36:09.361Z","status":"ssl_error","status_checked_at":"2026-01-22T19:36:05.567Z","response_time":144,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","asyncio","cache","python","quart","redis"],"created_at":"2026-01-22T19:50:51.972Z","updated_at":"2026-01-22T19:50:54.737Z","avatar_url":"https://github.com/enchant97.png","language":"Python","funding_links":["https://www.buymeacoffee.com/leospratt"],"categories":[],"sub_categories":[],"readme":"# Quart-Redis\n[![Documentation Status](https://readthedocs.org/projects/quart-redis/badge/?version=latest)](https://quart-redis.readthedocs.io/en/latest/)\n![PyPI](https://img.shields.io/pypi/v/quart-redis)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/quart-redis)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/quart-redis)\n![GitHub](https://img.shields.io/github/license/enchant97/quart-redis)\n![GitHub issues](https://img.shields.io/github/issues/enchant97/quart-redis)\n![GitHub last commit](https://img.shields.io/github/last-commit/enchant97/quart-redis)\n\nAn easy way of setting up a redis connection in quart.\n\n\u003e View the docs [here](https://quart-redis.readthedocs.io/en/latest/).\n\n## Requirements\n- quart ~= 0.20\n- redis \u003e= 5.2.1, \u003c 6\n\n## Example\n\n```python\n# file: app.py\nfrom quart import Quart\nfrom quart_redis import RedisHandler, get_redis\n\napp = Quart(__name__)\napp.config[\"REDIS_URI\"] = \"redis://localhost\"\n# override default connection attempts, set \u003c 0 to disable\n# app.config[\"REDIS_CONN_ATTEMPTS\"] = 3\nredis_handler = RedisHandler(app)\n\n@app.route(\"/\")\nasync def index():\n    redis = get_redis()\n\n    val = await redis.get(\"my-key\")\n\n    if val is None:\n        await redis.set(\"my-key\", \"it works!\")\n        val = await redis.get(\"my-key\")\n\n    return val\n```\n\n## Testing\nDue to quart_redis using `before_serving` and `after_serving`, using the Quart `test_client` requires the use of `test_app`. Pytest example shown below:\n\n```python\n# file: test.py\nimport pytest\nfrom app import app\n\n@pytest.fixture(name=\"my_app\", scope=\"function\")\nasync def _my_app():\n    async with app.test_app() as test_app:\n        yield test_app\n\nasync def test_redis(my_app):\n    async with my_app.test_client() as client:\n        result = await client.get(\"/\")\n        assert result == b\"it works!\"\n```\n\n## Faking Redis\n\nFor development and testing, you may not have a running Redis instance. In this case, the [`fakeredis`](https://pypi.org/project/fakeredis/) package may be installed and then used instead of actual redis by setting `USE_FAKE_REDIS` environment variable to true at runtime.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenchant97%2Fquart-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenchant97%2Fquart-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenchant97%2Fquart-redis/lists"}