{"id":13705580,"url":"https://github.com/Relrin/sanic-redis-extension","last_synced_at":"2025-05-05T16:33:19.181Z","repository":{"id":50061792,"uuid":"122716607","full_name":"Relrin/sanic-redis-extension","owner":"Relrin","description":"Redis support for Sanic framework","archived":false,"fork":false,"pushed_at":"2022-12-12T22:37:33.000Z","size":9,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-07T14:22:48.954Z","etag":null,"topics":["extension","python","redis","sanic"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Relrin.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-24T07:44:33.000Z","updated_at":"2024-03-10T22:53:55.000Z","dependencies_parsed_at":"2023-01-28T02:16:05.618Z","dependency_job_id":null,"html_url":"https://github.com/Relrin/sanic-redis-extension","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relrin%2Fsanic-redis-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relrin%2Fsanic-redis-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relrin%2Fsanic-redis-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relrin%2Fsanic-redis-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Relrin","download_url":"https://codeload.github.com/Relrin/sanic-redis-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224455892,"owners_count":17314200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["extension","python","redis","sanic"],"created_at":"2024-08-02T22:00:44.077Z","updated_at":"2024-11-13T13:30:41.730Z","avatar_url":"https://github.com/Relrin.png","language":"Python","funding_links":[],"categories":["Extensions"],"sub_categories":["Caching"],"readme":"sanic-redis-extension\n#####################\nRedis support for Sanic framework\n\nFeatures\n========\n- Based on the redis_ library\n- Easy to use and configurate for your own projects\n\nInstallation\n============\nThis package should be installed using pip: ::\n\n    pip install sanic-redis-extension\n\nExample\n=======\n.. code-block:: python\n\n    from sanic import Sanic, response\n    from sanic_redis_ext import RedisExtension\n\n\n    app = Sanic(__name__)\n    # Configuration for Redis\n    app.config.update({\n        \"REDIS_HOST\": \"127.0.0.1\",\n        \"REDIS_PORT\": 6379,\n        \"REDIS_DATABASE\": 0,\n        \"REDIS_MAX_CONNECTIONS\": 15,\n    })\n    RedisExtension(app) # Connection pool is available as `app.ctx.redis` or `app.ctx.extensions['redis']`\n\n\n    @app.route(\"/\")\n    async def handle(request):\n        await request.app.ctx.redis.set('test-my-key', 'value')\n        val = await request.app.ctx.redis.get('test-my-key')\n        return response.text(val.decode('utf-8'))\n\nLicense\n=======\nThe sanic-redis-extension is published under BSD license. For more details read LICENSE_ file.\n\n.. _links:\n.. _redis: https://redis.readthedocs.io/\n.. _LICENSE: https://github.com/Relrin/sanic-redis-extension/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRelrin%2Fsanic-redis-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRelrin%2Fsanic-redis-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRelrin%2Fsanic-redis-extension/lists"}