{"id":21061598,"url":"https://github.com/softwaredoug/subredis","last_synced_at":"2025-05-16T00:34:28.082Z","repository":{"id":12567013,"uuid":"15237477","full_name":"softwaredoug/subredis","owner":"softwaredoug","description":"Yo Dawg I heard you liked Redis so I put more Redis in your Redis","archived":false,"fork":false,"pushed_at":"2023-08-04T23:10:04.000Z","size":28,"stargazers_count":22,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T19:12:28.422Z","etag":null,"topics":["python","redis"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softwaredoug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2013-12-16T21:18:03.000Z","updated_at":"2024-02-08T05:36:47.000Z","dependencies_parsed_at":"2024-06-21T14:24:05.936Z","dependency_job_id":"7cb628c0-708e-4eff-92e4-c93f6e9823f4","html_url":"https://github.com/softwaredoug/subredis","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/softwaredoug%2Fsubredis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwaredoug%2Fsubredis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwaredoug%2Fsubredis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwaredoug%2Fsubredis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softwaredoug","download_url":"https://codeload.github.com/softwaredoug/subredis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448062,"owners_count":22072755,"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":["python","redis"],"created_at":"2024-11-19T17:25:59.381Z","updated_at":"2025-05-16T00:34:25.302Z","avatar_url":"https://github.com/softwaredoug.png","language":"Python","readme":"subredis\n========\n\n[![Build Status](https://travis-ci.org/softwaredoug/subredis.svg?branch=master)](https://travis-ci.org/softwaredoug/subredis)\n\nSubRedis is a simple namespace wrapper for Redis, generating completely sandboxed redises to enhance application safety and modularity.\n\nSubredis allows creating redis's within an existing redis (or subredis) by prepending a prefix to the key before interacting with redis. Each subredis exists in a redis-compatible but isolated bubble unaffected by other subredis activity going on in the application. See [sample usage](##Sample Usage) for examples.\n\nYou can read more in [this blog post](http://www.opensourceconnections.com/?p=4800\u0026preview=true).\n\n## Installation\n\n     pip install subredis\n\n\n## Sample Usage\n\n### Basic Usage\n\n     from subredis import SubRedis\n\n     redis = redis.from_url('redis://localhost:6379')\n     subred = SubRedis(\"keyspace\", redis)\n     \n     subred.set(\"foo\", \"bar\")   # stores keyspace_foo -\u003e bar\n     subred.get(\"foo\")          # gets keyspace_foo\n     subred.flushdb()           # flushes everything in \"keyspace\"\n     \n### Create hierarchy within redis\n \n     # Redis storing info about this student's classes\n     subred = SubRedis(studentId + \"-classes\", redis)\n     subred.set(\"name\", \"Biology\")\n     subred.set(\"teacher\", \"Professor Tim\")\n     \n     # Redis storing info about this student's grades in this class\n     subred2 = SubRedis(classId + \"-grades\", subred)\n     subred2.set(\"Midterm\", \"89\")\n     subred2.set(\"Final Project\", \"72\")\n     \n     \n## Supported Features\n\nSubredis intends to support nearly all features of a StrictRedis instance with the following exceptions:\n\n1. Lua Scripting\n2. Many Redis \"Admin\" interface calls (ie bgsave, etc)\n\n## License, etc\n\nReleased under Apache license. See [here]([LICENSE.txt]) for more info.\n\n(C) Doug Turnbull, 2013\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwaredoug%2Fsubredis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftwaredoug%2Fsubredis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwaredoug%2Fsubredis/lists"}