{"id":13758122,"url":"https://github.com/getsentry/rb","last_synced_at":"2025-04-13T08:50:40.585Z","repository":{"id":48267152,"uuid":"40675796","full_name":"getsentry/rb","owner":"getsentry","description":"Routing and connection management for Redis in Python","archived":false,"fork":false,"pushed_at":"2024-12-05T14:32:56.000Z","size":356,"stargazers_count":301,"open_issues_count":8,"forks_count":30,"subscribers_count":70,"default_branch":"master","last_synced_at":"2025-04-06T05:03:02.822Z","etag":null,"topics":["tag-production"],"latest_commit_sha":null,"homepage":"http://rb.readthedocs.org/en/latest/","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/getsentry.png","metadata":{"funding":{"custom":["https://sentry.io/pricing/","https://sentry.io/"]},"files":{"readme":"README.md","changelog":"CHANGES","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}},"created_at":"2015-08-13T18:42:51.000Z","updated_at":"2025-04-04T04:08:27.000Z","dependencies_parsed_at":"2024-06-18T15:35:50.363Z","dependency_job_id":"8bffdd8d-a635-4bf4-a881-6584d2ee85a8","html_url":"https://github.com/getsentry/rb","commit_stats":{"total_commits":181,"total_committers":14,"mean_commits":"12.928571428571429","dds":0.2154696132596685,"last_synced_commit":"14803679d27b22b1cb634ffdfaded04454a946e4"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Frb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Frb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Frb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Frb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getsentry","download_url":"https://codeload.github.com/getsentry/rb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688417,"owners_count":21145763,"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":["tag-production"],"created_at":"2024-08-03T12:01:01.490Z","updated_at":"2025-04-13T08:50:40.557Z","avatar_url":"https://github.com/getsentry.png","language":"Python","readme":"# rb [![test](https://github.com/getsentry/rb/actions/workflows/test.yml/badge.svg)](https://github.com/getsentry/rb/actions/workflows/test.yml)\n\n![logo](https://github.com/getsentry/rb/blob/master/docs/_static/rb.png?raw=true)\n\nrb - the redis blaster.\n\nThe fastest way to talk to many redis nodes.  Can do routing as well as\nblindly blasting commands to many nodes.  How does it work?\n\nFor full documentation see [rb.rtfd.org](http://rb.rtfd.org/)\n\n## Quickstart\n\nSet up a cluster:\n\n```python\nfrom rb import Cluster\n\ncluster = Cluster({\n    0: {'port': 6379},\n    1: {'port': 6380},\n    2: {'port': 6381},\n    3: {'port': 6382},\n}, host_defaults={\n    'host': '127.0.0.1',\n})\n```\n\nAutomatic routing:\n\n```python\nresults = []\nwith cluster.map() as client:\n    for key in range(100):\n        client.get(key).then(lambda x: results.append(int(x or 0)))\n\nprint('Sum: %s' % sum(results))\n```\n\nFanout:\n\n```python\nwith cluster.fanout(hosts=[0, 1, 2, 3]) as client:\n    infos = client.info()\n```\n\nFanout to all:\n\n```python\nwith cluster.fanout(hosts='all') as client:\n    client.flushdb()\n```\n","funding_links":["https://sentry.io/pricing/","https://sentry.io/"],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Frb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetsentry%2Frb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Frb/lists"}