{ "info": { "author": "Giuseppe Ciotta", "author_email": "gciotta@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries" ], "description": "jsonrpc-requests: a compact JSON-RPC client library backed by `requests `_\n=======================================================================================================\n\n.. image:: https://travis-ci.org/gciotta/jsonrpc-requests.svg\n :target: https://travis-ci.org/gciotta/jsonrpc-requests\n.. image:: https://coveralls.io/repos/gciotta/jsonrpc-requests/badge.svg\n :target: https://coveralls.io/r/gciotta/jsonrpc-requests\n\nThis is a compact and simple JSON-RPC client implementation written while debugging a picky server.\n\nMain Features\n-------------\n\n* Python 2.7, 3.4, 3.5, 3.6 compatible\n* Exposes requests options\n* Supports nested namespaces (eg. `app.users.getUsers()`)\n* 100% test coverage\n\nTODO\n----\n\n* Batch requests (http://www.jsonrpc.org/specification#batch)\n\nUsage\n-----\n.. code-block:: python\n\n from jsonrpc_requests import Server\n server = Server('http://localhost:8080')\n server.foo(1, 2)\n server.foo(bar=1, baz=2)\n server.foo({'foo': 'bar'})\n server.foo.bar(baz=1, qux=2)\n\nA notification:\n\n.. code-block:: python\n\n from jsonrpc_requests import Server\n server.foo(bar=1, _notification=True)\n\nPass through arguments to requests (see also `requests documentation `_)\n\n.. code-block:: python\n\n from jsonrpc_requests import Server\n server = Server('http://localhost:8080', auth=('user', 'pass'), headers={'x-test2': 'true'})\n\nPass through requests exceptions\n\n.. code-block:: python\n\n from jsonrpc_requests import Server, TransportError\n server = Server('http://unknown-host')\n try:\n server.foo()\n except TransportError as transport_error:\n print(transport_error.cause) # this will hold a `requests.exceptions.RequestException` instance\n\n\nTests\n-----\nInstall the Python tox package and run ``tox``, it'll test this package with various versions of Python.\n\nCredits\n-------\n`@mbroadst `_ for providing full support for nested method calls, JSON-RPC RFC\ncompliance and other improvements.\n\n`@vaab `_ for providing api and tests improvements, better RFC compliance.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/gciotta/jsonrpc-requests", "keywords": "json-rpc requests", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "jsonrpc-requests", "package_url": "https://pypi.org/project/jsonrpc-requests/", "platform": "", "project_url": "https://pypi.org/project/jsonrpc-requests/", "project_urls": { "Homepage": "http://github.com/gciotta/jsonrpc-requests" }, "release_url": "https://pypi.org/project/jsonrpc-requests/0.4.0/", "requires_dist": null, "requires_python": "", "summary": "A JSON-RPC client library, backed by requests", "version": "0.4.0" }, "last_serial": 2635674, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "f29fe7691689469311c26779b3762eb7", "sha256": "da5fc3696bffc90807e8c602fd57a77db3f90cfac3bfa6edfb67727ea82b5a43" }, "downloads": -1, "filename": "jsonrpc-requests-0.1.tar.gz", "has_sig": false, "md5_digest": "f29fe7691689469311c26779b3762eb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4011, "upload_time": "2014-08-22T09:40:32", "url": "https://files.pythonhosted.org/packages/88/48/3707004a32d238988cd92c92072d47a9b8b150b77b5168d783e310c5acf3/jsonrpc-requests-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "fa6b4c166a79179951b1914332b02f69", "sha256": "fff5ee473e26fdb00cc7ec9188b7db69052feb014721da133e7321a7d5bee2b2" }, "downloads": -1, "filename": "jsonrpc-requests-0.2.tar.gz", "has_sig": false, "md5_digest": "fa6b4c166a79179951b1914332b02f69", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4517, "upload_time": "2015-06-21T20:05:14", "url": "https://files.pythonhosted.org/packages/a7/a0/084a4afb1e87dd07d54fa09045c0b0637f74dd2e3b883c7447733d428771/jsonrpc-requests-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "5dea6e7cb2cec6afa4a0ff1dd65628a3", "sha256": "a14e5d29d048e51981eabcef584576d8d9afe7d7cf402a6972acecc50183c636" }, "downloads": -1, "filename": "jsonrpc-requests-0.3.tar.gz", "has_sig": false, "md5_digest": "5dea6e7cb2cec6afa4a0ff1dd65628a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4707, "upload_time": "2016-06-29T19:22:17", "url": "https://files.pythonhosted.org/packages/d9/ec/13feece53ec28d32c85330d52db484a20e6411b15ad77e7f6ba67ac99d94/jsonrpc-requests-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "5d01739c0591a308f1eba81710df3dc9", "sha256": "f09667461c4ac783d01250879cde37dba72d80149c8df446451bdb2206ba88bd" }, "downloads": -1, "filename": "jsonrpc-requests-0.3.1.tar.gz", "has_sig": false, "md5_digest": "5d01739c0591a308f1eba81710df3dc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4680, "upload_time": "2017-02-11T17:34:37", "url": "https://files.pythonhosted.org/packages/98/34/3d75c872caec40b51b262f9a9a6a6c7b7c3e94a04de091210bd2a586370a/jsonrpc-requests-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "720f93c5dc6556c78fe5ca4c5039a485", "sha256": "96d955e00397bb67a11c8ff3aa73df4c56bbc2c1fb1a3c60a081a6c591e5cd6e" }, "downloads": -1, "filename": "jsonrpc-requests-0.4.0.zip", "has_sig": false, "md5_digest": "720f93c5dc6556c78fe5ca4c5039a485", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8915, "upload_time": "2017-02-11T18:31:17", "url": "https://files.pythonhosted.org/packages/ca/ec/da48ac30344bbb53e92f6e5e4e97df919bab351db146d249c471a124f390/jsonrpc-requests-0.4.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "720f93c5dc6556c78fe5ca4c5039a485", "sha256": "96d955e00397bb67a11c8ff3aa73df4c56bbc2c1fb1a3c60a081a6c591e5cd6e" }, "downloads": -1, "filename": "jsonrpc-requests-0.4.0.zip", "has_sig": false, "md5_digest": "720f93c5dc6556c78fe5ca4c5039a485", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8915, "upload_time": "2017-02-11T18:31:17", "url": "https://files.pythonhosted.org/packages/ca/ec/da48ac30344bbb53e92f6e5e4e97df919bab351db146d249c471a124f390/jsonrpc-requests-0.4.0.zip" } ] }