{"id":16714801,"url":"https://github.com/jesus89/rainbow","last_synced_at":"2025-04-10T06:14:34.455Z","repository":{"id":84812736,"uuid":"43872653","full_name":"Jesus89/rainbow","owner":"Jesus89","description":"Micro-framework for Python RPC+Pub/Sub over WebSockets","archived":false,"fork":false,"pushed_at":"2016-04-04T08:22:35.000Z","size":267,"stargazers_count":13,"open_issues_count":3,"forks_count":5,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-03-24T07:26:13.143Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jesus89.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-08T08:12:12.000Z","updated_at":"2022-10-05T09:35:01.000Z","dependencies_parsed_at":"2023-03-05T02:30:46.056Z","dependency_job_id":null,"html_url":"https://github.com/Jesus89/rainbow","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jesus89%2Frainbow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jesus89%2Frainbow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jesus89%2Frainbow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jesus89%2Frainbow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jesus89","download_url":"https://codeload.github.com/Jesus89/rainbow/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166912,"owners_count":21058481,"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":[],"created_at":"2024-10-12T21:07:06.804Z","updated_at":"2025-04-10T06:14:34.444Z","avatar_url":"https://github.com/Jesus89.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![][rainbow]\n\n[![License](http://img.shields.io/:license-gpl-blue.svg?style=flat)](http://opensource.org/licenses/GPL-2.0) [![Build Status](https://travis-ci.org/Jesus89/rainbow.svg)](https://travis-ci.org/Jesus89/rainbow)\n\nMicro-framework for Python RPC+Pub/Sub communication over WebSockets\n* Based on the [WAMP](http://wamp-proto.org/why/) protocol.\n* Compatible with [JSON-RPC 2.0](http://www.jsonrpc.org/specification).\n* JSON Events using the [Publish/Subscribe pattern](http://rfc.zeromq.org/spec:29).\n* Syntax inspired by [Bottle](https://github.com/bottlepy/bottle).\n* It includes [Avahi](http://www.avahi.org/) discovery service.\n\n## Installation\n\n```bash\nsudo apt-get install python-dev libzmq3-dev avahi-daemon\n\n# Disable avahi on init\nsudo update-rc.d -f avahi-daemon remove\n\nsudo pip install pyrainbow\n```\n\n## Protocol\n\n[Rainbow protocol](doc/protocol.md)\n\n## Description\n\n[API description](doc/api-description.md)\n\n## Example\n\nBasic example\n\n```python\nfrom rainbow import register, run\n\n@register\ndef add(a=0, b=0):\n    return a + b\n\nrun(host='0.0.0.0')\n```\n\nPublish example\n\n```python\nfrom rainbow import register, publish, run\n\n@register\ndef pub():\n    publish('event', 'data')\n\nrun(host='0.0.0.0')\n```\n\nCheck more amazing [examples](https://github.com/Jesus89/rainbow/tree/develop/examples)!\n\n[rainbow]: doc/images/rainbow.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesus89%2Frainbow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjesus89%2Frainbow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesus89%2Frainbow/lists"}