{"id":20083478,"url":"https://github.com/mause/rpc","last_synced_at":"2025-05-06T01:31:18.218Z","repository":{"id":38316793,"uuid":"258698425","full_name":"Mause/rpc","owner":"Mause","description":"Very simple python rabbitmq/pika rpc library","archived":false,"fork":false,"pushed_at":"2025-04-16T00:49:44.000Z","size":481,"stargazers_count":5,"open_issues_count":22,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T21:16:26.242Z","etag":null,"topics":["pika","python","rpc"],"latest_commit_sha":null,"homepage":"","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/Mause.png","metadata":{"files":{"readme":"README.md","changelog":"History.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,"zenodo":null}},"created_at":"2020-04-25T05:53:47.000Z","updated_at":"2024-01-18T08:04:50.000Z","dependencies_parsed_at":"2023-10-11T09:17:28.467Z","dependency_job_id":"4ea89451-1a3b-40ff-9ea0-24190eb2cce0","html_url":"https://github.com/Mause/rpc","commit_stats":{"total_commits":199,"total_committers":4,"mean_commits":49.75,"dds":0.5477386934673367,"last_synced_commit":"a0de34894473e78a06d0bcc2dd642e2e4b5c2c8f"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mause%2Frpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mause%2Frpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mause%2Frpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mause%2Frpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mause","download_url":"https://codeload.github.com/Mause/rpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252604256,"owners_count":21775074,"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":["pika","python","rpc"],"created_at":"2024-11-13T15:47:22.034Z","updated_at":"2025-05-06T01:31:17.970Z","avatar_url":"https://github.com/Mause.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mause RPC\n=========\n\nA dumb as hell rpc implementation built on rabbitmq\n\nNeed to write a server?\n\n```py\nfrom mause_rpc.server import Server\n\nrpc_queue = \"rpc.queue\"\nserver = Server(rpc_queue, \"rabbitmq://...\")\n\n\n@server.register\ndef hello(name: str) -\u003e str:\n    return \"hello \" + name\n\n\n@server.register(\"divide\")\ndef div(a: int, b: int) -\u003e float:\n    if b == 0:\n        raise ZeroDivisionError()\n    return a / b\n\n\nif __name__ == \"__main__\":\n    server.serve()\n```\n\nNeed a client?\n\n```py\nfrom mause_rpc.client import get_client\n\nrpc_queue = \"rpc.queue\"\nclient = get_client(rpc_queue, \"rabbitmq://...\")\n\n\ndef test_basic_functionality():\n    assert client.hello(\"mark\") == \"hello mark\"\n    assert client.divide(5, 2) == 2.5\n\n    with pytest.raises(ZeroDivisionError):\n        client.divide(5, 0)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmause%2Frpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmause%2Frpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmause%2Frpc/lists"}