{"id":20606800,"url":"https://github.com/jochumdev/socketrpc","last_synced_at":"2025-09-13T06:45:06.534Z","repository":{"id":1399508,"uuid":"1421817","full_name":"jochumdev/socketrpc","owner":"jochumdev","description":"simple socket rpc client/server for gevent and twisted","archived":false,"fork":false,"pushed_at":"2011-03-17T23:18:50.000Z","size":107,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-15T02:44:55.917Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"tnc/php-amqplib","license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jochumdev.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}},"created_at":"2011-02-28T14:57:06.000Z","updated_at":"2013-12-17T01:38:16.000Z","dependencies_parsed_at":"2022-07-07T11:29:29.902Z","dependency_job_id":null,"html_url":"https://github.com/jochumdev/socketrpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jochumdev/socketrpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jochumdev%2Fsocketrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jochumdev%2Fsocketrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jochumdev%2Fsocketrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jochumdev%2Fsocketrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jochumdev","download_url":"https://codeload.github.com/jochumdev/socketrpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jochumdev%2Fsocketrpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274929836,"owners_count":25375712,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-16T09:34:44.620Z","updated_at":"2025-09-13T06:45:06.516Z","avatar_url":"https://github.com/jochumdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Socketrpc client/server\n============\n\nIntroduction\n---------\nThis is a simple socket rpc client/server for gevent and twisted\n\nI use this a replacement for \"Perspective Broker\" of Twisted\nas i'm switching from Twisted to gevent.\n\nIt uses a very simple dataformat to transfer calls:\n\n    Client: --\u003e {call: [method, args, kwargs, call_id]}\n    Server: \u003c-- {reply: [status, result, call_id]}\n\nOn the network level it uses a sized format:\n\n    [(uint16_t)serialized size][serialized data]\n\nExample:\n\n    Client: --\u003e {\"call\": [\"echo\", [\"hello world\"], {}, 1]}\n    Server: \u003c-- {\"reply\": [0, \"hello world\", 1]}\n\nIts also possible for the server to call on the client:\n\n    Server: --\u003e {\"call\": [\"echo\", [\"hello world\"], {}, 1]}\n    Client: \u003c-- {\"reply\": [0, \"hello world\", 1]}\n\nFeatures\n---------\n* Symmetric calls over a single socket\n* Supports different serializers\n* Native implementions for both Twisted and gevent\n\nRequirements\n---------\n* gevent \u003e= 0.13.0 for the gevent variant\n* Twisted \u003e= 10.1 for the twisted variant\n\n* bson for the bson serializer\n* jsonlib for the jsonlib serializer\n\nRoadmap\n---------\n- 0.0.X - Docs, bugfixes and Unittests\n- 1.0.0 - Stable API, following http://semver.org/ from this point on\n\nHowto\n---------\nFor now see examples/twisted_srpc.py and examples/gevent_srpc.py\n\n- Start a gevent server with the bson serializer\n\n    $ ./examples/gevent_srpc.py -d -s bson server\n\n- Run 100 calls on the server\n\n    ./examples/gevent_srpc.py -d -s bson -r 100 clientserial\n\n- Run a bounced call (Client calls server to call the client)\n\n    $ ./examples/gevent_srpc.py -d -s bson clientsingle\n\nCopyright\n---------\nCopyright (c) 2011 Rene Jochum, See LICENSE for details. (NEW-BSD)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjochumdev%2Fsocketrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjochumdev%2Fsocketrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjochumdev%2Fsocketrpc/lists"}