{ "info": { "author": "Gerold Penz", "author_email": "gerold@halvar.at", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: CherryPy", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Internet :: WWW/HTTP :: HTTP Servers", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware", "Topic :: Internet :: WWW/HTTP :: WSGI :: Server" ], "description": "##########################################\nCherryPy JSON-RPC-Server Tool (DEPRECATED)\n##########################################\n\n**DEPRECATED!**\n\nUse *python-jsonrpc* instead:\n \n- https://pypi.python.org/pypi/python-jsonrpc\n- https://github.com/gerold-penz/python-jsonrpc\n\n\n**python-jsonrpc** Example:\n\n.. code:: python\n\n #!/usr/bin/env python\n # coding: utf-8\n\n import cherrypy\n from pyjsonrpc.cp import CherryPyJsonRpc, rpcmethod\n\n\n class Root(CherryPyJsonRpc):\n\n @rpcmethod\n def add(self, a, b):\n \"\"\"Test method\"\"\"\n return a + b\n\n index = CherryPyJsonRpc.request_handler\n\n\n print \"Starting HTTP server ...\"\n print \"URL: http://localhost:8080\"\n cherrypy.quickstart(Root())\n\n\n---------\n\n| \n| \n\n*cherrypy-jsonrpc* stellt CherryPy eine Klasse zum Handling von \nJSON-RPC v2.0 zur Verf\u00fcgung.\n\nLeitet man eine Klasse von dieser Klasse ab, werden alle mit\n\n::\n\n .exposed = True\n\ngekennzeichneten Methoden dieser Klasse zu JSON-RPC-Methoden.\n\nAn der Umsetzung des JSON-RPC-Servers zur Verwendung als CherryPy-Tool wird\nderzeit gearbeitet.\n\nInformationen:\n\n- `JSON-RPC Specification`_\n- `Historical JSON-RPC Specifications`_\n- `JSON-Schema`_ (klingt interessant - sollte man einbauen)\n\n\n.. _`JSON-RPC Specification`: http://jsonrpc.org/spec.html\n.. _`Historical JSON-RPC Specifications`: http://jsonrpc.org/historical/\n.. _`JSON-Schema`: http://json-schema.org/\n\n\nBeispiel:\n\n.. code:: python\n\n #!/usr/bin/env python\n # coding: utf-8\n\n import cherrypy\n import cpjsonrpcserver\n\n\n class JsonRpcMethods(cpjsonrpcserver.JsonRpcMethods):\n \n def hello(self, name):\n return u\"Hello \" + name\n hello.exposed = True\n \n \n def multi(self, num):\n return num * 2\n multi.exposed = True\n\n\n def main():\n cherrypy.quickstart(JsonRpcMethods(debug = True))\n\n\n if __name__ == \"__main__\":\n main()", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/gerold-penz/cherrypy-jsonrpcserver/raw/master/dist/cherrypy-jsonrpcserver-0.3.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gerold-penz/cherrypy-jsonrpcserver", "keywords": "CherryPy Web JSON JSON-RPC Tool", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "cherrypy-jsonrpcserver", "package_url": "https://pypi.org/project/cherrypy-jsonrpcserver/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cherrypy-jsonrpcserver/", "project_urls": { "Download": "https://github.com/gerold-penz/cherrypy-jsonrpcserver/raw/master/dist/cherrypy-jsonrpcserver-0.3.1.tar.gz", "Homepage": "https://github.com/gerold-penz/cherrypy-jsonrpcserver" }, "release_url": "https://pypi.org/project/cherrypy-jsonrpcserver/0.3.1/", "requires_dist": null, "requires_python": null, "summary": "CherryPy JSON-RPC-Server Tool - Simple To Use Python JSONRPC-Server", "version": "0.3.1" }, "last_serial": 1281417, "releases": { "0.3.1": [] }, "urls": [] }