{ "info": { "author": "Brett Langdon", "author_email": "brett@blangdon.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Utilities" ], "description": "GreenRPC\n========\n\nTCP & HTTP RPC Server written with [msgpack](http://msgpack.org/) and\n[gevent](http://www.gevent.org/)\n\n## Install\n### pip\n\n```bash\npip install greenrpc\n```\n\n### git\n```bash\ngit clone git://github.com/brettlangdon/greenrpc.git\ncd ./greenrpc\npython setup.py install\n```\n\n\n## Usage\n### server\n```bash\n$ greenrpc-server -h\nusage: greenrpc-server [-h] [--bind BIND] [--spawn SPAWN] [--http] [ ...]\n\nStart a new GreenRPC TCP Server\n\npositional arguments:\n Python module to expose for the RPC Server\n\noptional arguments:\n-h, --help show this help message and exit\n--bind BIND
: to bind the server to (default: 127.0.0.1:3434)\n--spawn SPAWN number of greenlets to spawn (default: 4)\n--http whether to start an http server instead of tcp (default: False)\n```\n\nExpose the python module [time](https://docs.python.org/2/library/time.html) as\nan RPC server\n```\n$ greenrpc-server time\n```\n\nExposing multiple modules\n```\n$ greenrpc-server time json\n```\n\n### cli client\n```bash\n$ greenrpc-client -h\nusage: greenrpc-client [-h] [--connect CONNECT] [--debug] [--http] [ [ ...]]\n\nStart a new GreenRPC TCP Server\n\npositional arguments:\n The remote method to call\n Arguments to send for the remote method call\n\noptional arguments:\n-h, --help show this help message and exit\n--connect CONNECT
: of the server to connect to(default: 127.0.0.1:3434)\n--debug whether or not to show the full result\n--http whether the server is http or tcp\n```\n\n```\n$ greenrpc-client time\n1414368752.71\n$ greenrpc-client --debug time\n{'results': 1414368766.407974, 'run_time': 0.0059604644775390625, 'id': 1}\n```\n\n### python client\n```python\nfrom greenrpc.client import TCPClient\n\nclient = TCPClient()\nprint client.time()\n# 1414368818.587777\nprint client.call(\"time\")\n# 1414368830.217749\nprint client.call(\"time\", debug=True)\n# {'results': 1414368849.379209, 'run_time': 0.008106231689453125, 'id': 3}\n```\n\n\n## License\n```\nThe MIT License (MIT)\n\nCopyright (c) 2014 Brett Langdon\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/brettlangdon/greenrpc", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "greenrpc", "package_url": "https://pypi.org/project/greenrpc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/greenrpc/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/brettlangdon/greenrpc" }, "release_url": "https://pypi.org/project/greenrpc/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "TCP & HTTP RPC Servers written with msgpack and gevent", "version": "0.1.4" }, "last_serial": 1291210, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ca5b8c2d9c7b311dc65a3843fa20af9d", "sha256": "7d268a4a2e902de9bba56726850035f87fe0811bd3df36521bc99743a67f2751" }, "downloads": -1, "filename": "greenrpc-0.1.0.tar.gz", "has_sig": false, "md5_digest": "ca5b8c2d9c7b311dc65a3843fa20af9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5378, "upload_time": "2014-10-27T00:16:09", "url": "https://files.pythonhosted.org/packages/e0/49/baffd5d73dbed7e3bd359b91706bb648b366f5a535bc363d74bac1b0a121/greenrpc-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "69f848a484ea9a5cf9a2c00d7a7adbb5", "sha256": "eea4b89c2e6336324fb648519cc2757df573d117f31091852e345ef58480809b" }, "downloads": -1, "filename": "greenrpc-0.1.1.tar.gz", "has_sig": false, "md5_digest": "69f848a484ea9a5cf9a2c00d7a7adbb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5434, "upload_time": "2014-10-31T14:09:46", "url": "https://files.pythonhosted.org/packages/15/e4/97c81b4ee383a26986b4d91b12889e8128cdc8d3f0644b9051570094d58a/greenrpc-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "3c2c1981be5c6ff31707c25c0fd0e280", "sha256": "625d5d72a2a7fecbd8a4adcceb25a8d7d067bb5ed7ba1467406f2b06723ddf07" }, "downloads": -1, "filename": "greenrpc-0.1.2.tar.gz", "has_sig": false, "md5_digest": "3c2c1981be5c6ff31707c25c0fd0e280", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5446, "upload_time": "2014-10-31T19:13:25", "url": "https://files.pythonhosted.org/packages/71/d7/cdb5c2ff498aa7ebbda5ca895cb3b04ff57bd1804b7e8dc464e2fe5ea8ff/greenrpc-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "279dd1996659a95703fc261119e8fad1", "sha256": "bcfa13d1474e7a79973c0c5109051bb6376c604f07e6b7560fa04a86227bc715" }, "downloads": -1, "filename": "greenrpc-0.1.3.tar.gz", "has_sig": false, "md5_digest": "279dd1996659a95703fc261119e8fad1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5472, "upload_time": "2014-10-31T22:46:55", "url": "https://files.pythonhosted.org/packages/72/d7/cd072cf41e66ef959f4d3e419196bd376f9f70e617f6ea5e9bb03ad1f999/greenrpc-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "7a6eb3979b4ac4a47aa566eb4ef13f24", "sha256": "9ffbc556c48e1d28a51fc706f65788e1a178d67e3e923b7b4ffa7ed48bc3b086" }, "downloads": -1, "filename": "greenrpc-0.1.4.tar.gz", "has_sig": false, "md5_digest": "7a6eb3979b4ac4a47aa566eb4ef13f24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5471, "upload_time": "2014-11-01T19:20:15", "url": "https://files.pythonhosted.org/packages/60/39/e616e17a47cd7b713996d3d646f023bc09e19aa95fbe15cdfcf97fbcd7f6/greenrpc-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7a6eb3979b4ac4a47aa566eb4ef13f24", "sha256": "9ffbc556c48e1d28a51fc706f65788e1a178d67e3e923b7b4ffa7ed48bc3b086" }, "downloads": -1, "filename": "greenrpc-0.1.4.tar.gz", "has_sig": false, "md5_digest": "7a6eb3979b4ac4a47aa566eb4ef13f24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5471, "upload_time": "2014-11-01T19:20:15", "url": "https://files.pythonhosted.org/packages/60/39/e616e17a47cd7b713996d3d646f023bc09e19aa95fbe15cdfcf97fbcd7f6/greenrpc-0.1.4.tar.gz" } ] }