txJSON-RPC

Code for creating Twisted JSON-RPC servers and clients
Download

txJSON-RPC Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Duncan McGreggor
  • Publisher web site:
  • https://launchpad.net/~oubiwann

txJSON-RPC Tags


txJSON-RPC Description

Code for creating Twisted JSON-RPC servers and clients txJSON-RPC allows you to create async Python JSON-RPC servers and clients either over HTTP or directly on TCP with the Netstring protocol. It is written in Twisted.Installation:DevelopmentIf you want to develop for txJSON-RPC or use the latest code we're working on, you can install from the sources. You'll need bzr installed, and then just do the following:bzr branch lp:txjsonrpccd txjsonrpcsudo python setup.py installEasy InstallYou can use the setuptools easy_install script to get txSpore on your system:sudo easy_install txJSON-RPCManual DownloadYou can manually download the source tarball from the Python Package Index by visiting the following URL: http://pypi.python.org/pypi/txJSON-RPC/You'll need to untar and gunzip the source, cd into the source directory, and then you can do the usual:sudo python setup.py installChecking the SourceOnce installed, you can test the source code by executing this from the top-level source directory:trial txjsonrpcThat will run the test suite and report on the success and failure of any unit tests.Usage:ExamplesIn the top-level source directory for txJSON-RPC, there is an examples directory. This contains the following:* Client and server examples for twiste.web-based JSON-RPC.* Client and server examples for twiste.web2-based JSON-RPC.* Client and server examples for Netstring TCP JSON-RPC as well as code shoing how to use subhandlers for the TCP code, since this is different than the XML-RPC/JSON-RPC HTTP-based subhandlers.Examining each of the Python files in the example directories is the best way to get a sense of how to use txJSON-RPC. Here are some key features of "txJSON-RPC": · Asynchronous JSON-RPC server and client code. · Support for HTTP and TCP (Netstring) JSON-RPC. · A jsonrpclib similar to the one for XLM-RPC offered by the Python standard library. Requirements: · Python · Twisted What's New in This Release: · Removed unneeded dependency upon twisted.web2 for the TCP/Netstring JSON-RPC code. · Updated Netstring JSON-RPC code to allow for setting the MAX_LENGTH attribute. · Improved documentation.


txJSON-RPC Related Software