txJSON-RPC
|
Size: 2056
Comment:
|
← Revision 8 as of 2009-10-21 02:34:22 ⇥
Size: 2502
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| This is the project page for creating python JSON-RPC servers using the Twisted Python [http://glyf.livejournal.com/54500.html Integratotron]. | This is the wiki page for the [[https://launchpad.net/txjsonrpc|txJSON-RPC project]]. The goal of this code is to assist developers in creating python JSON-RPC servers using the [[http://twistedmatrix.com/trac/|Twisted Network Engine]]. |
| Line 7: | Line 7: |
| TwistedWeb - an HTTP implementation based on {{{twisted.web}}}; currently supports Basic Authentication (based completely on Itamar's work; this work is not original, but a simple conversion of his) | [[txJSON-RPC/TwistedWeb]] - an HTTP implementation based on {{{twisted.web}}}; currently supports Basic Authentication (based completely on Itamar's work; this work is not original, but a simple conversion of his) |
| Line 9: | Line 9: |
| TwistedWeb2 - an HTTP implementation based on {{{twisted.web2}}} (ditto on the parenthetical from above) | [[txJSON-RPC/TwistedWeb2]] - an HTTP implementation based on {{{twisted.web2}}} (ditto on the parenthetical from above) |
| Line 11: | Line 11: |
| TwistedNetstring - a TCP implementation based on Twisted Python's [http://twistedmatrix.com/trac/browser/trunk/twisted/protocols/basic.py?rev=16739#L32 implementation] of the [http://cr.yp.to/proto/netstrings.txt Netstring protocol] | [[txJSON-RPC/TwistedNetstring]] - a TCP implementation based on Twisted Python's [[http://twistedmatrix.com/trac/browser/trunk/twisted/protocols/basic.py?rev=16739#L32|implementation]] of the [[http://cr.yp.to/proto/netstrings.txt|Netstring protocol]] |
| Line 17: | Line 17: |
| sudo easy_install "http://twisted-jsonrpc.googlecode.com/svn/releases/Twisted_JSONRPC-0.0.3-py2.4.egg" | sudo easy_install txJSON-RPC |
| Line 19: | Line 19: |
| or, if you don't like the long URL: {{{ sudo easy_install "http://tinyurl.com/ynssnn" }}} Note that this depends upon the version you want. |
|
| Line 25: | Line 20: |
| Releases are [http://twisted-jsonrpc.googlecode.com/svn/releases/ here]. There are python2.3 eggs there sometimes, but keep in mind that these are mostly untested and issues with them may very well go unaddressed. However, issues with python2.4 eggs receive my full attention, so please submit a bug ("New Ticket" link above) if you find one. | Releases are [[http://pypi.python.org/pypi/txJSON-RPC|here]]. Source code is [[https://code.launchpad.net/txjsonrpc|here]]. |
| Line 29: | Line 26: |
| 0.0.3 Includes support for Twisted JSON-RPC servers/clients over TCP | 0.4.0 (rev 52 to rev XX) |
| Line 31: | Line 28: |
| 0.0.2 Includes support for {{{twisted.web2}}} JSON-RPC servers over HTTP | * Forth-coming release... |
| Line 33: | Line 30: |
| 0.0.1 Includes support for {{{twisted.web}}} JSON-RPC servers/clients over HTTP | 0.3.0 (rev 42 to rev 51) * 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. 0.2.0 Added a datetime serializer (rev 35 to rev 41) 0.1.0 Bug fix from Moshe Zadka for SimpleParser and long replies (rev 31 to rev 34) 0.0.5 SimpleParser bug fix, improved code abstractions(rev 22 to rev 30) 0.0.4 Changed name in accord with Twisted community projects recommendations (rev 16 to rev 21) 0.0.3 Includes support for Twisted JSON-RPC servers/clients over TCP by means of the Netstring protocol (rev 8 to rev 15) 0.0.2 Includes support for {{{twisted.web2}}} JSON-RPC servers over HTTP (rev 4 to rev 7) 0.0.1 Includes support for {{{twisted.web}}} JSON-RPC servers/clients over HTTP (rev 1 to rev 3) |
| Line 37: | Line 52: |
| [http://twisted-jsonrpc.googlecode.com/svn/trunk/adytum/jsonrpclib.py jsonrpclib] - a JSON partial analog to the python xmlrpclib | [[http://bazaar.launchpad.net/~oubiwann/txjsonrpc/main/annotate/head:/txjsonrpc/jsonrpclib.py|jsonrpclib]] - a JSON partial analog to the python xmlrpclib |
| Line 43: | Line 58: |
| [http://twisted-jsonrpc.googlecode.com/svn/trunk/TODO TODO] | [[http://bazaar.launchpad.net/~oubiwann/txjsonrpc/main/annotate/head:/TODO|TODO]] |
JSON-RPC
This is the wiki page for the txJSON-RPC project. The goal of this code is to assist developers in creating python JSON-RPC servers using the Twisted Network Engine.
Twisted
txJSON-RPC/TwistedWeb - an HTTP implementation based on twisted.web; currently supports Basic Authentication (based completely on Itamar's work; this work is not original, but a simple conversion of his)
txJSON-RPC/TwistedWeb2 - an HTTP implementation based on twisted.web2 (ditto on the parenthetical from above)
txJSON-RPC/TwistedNetstring - a TCP implementation based on Twisted Python's implementation of the Netstring protocol
Installation
Very easy installation:
sudo easy_install txJSON-RPC
Releases are here.
Source code is here.
Relase Notes
0.4.0 (rev 52 to rev XX)
- Forth-coming release...
0.3.0 (rev 42 to rev 51)
- 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.
0.2.0 Added a datetime serializer (rev 35 to rev 41)
0.1.0 Bug fix from Moshe Zadka for SimpleParser and long replies (rev 31 to rev 34)
0.0.5 SimpleParser bug fix, improved code abstractions(rev 22 to rev 30)
0.0.4 Changed name in accord with Twisted community projects recommendations (rev 16 to rev 21)
0.0.3 Includes support for Twisted JSON-RPC servers/clients over TCP by means of the Netstring protocol (rev 8 to rev 15)
0.0.2 Includes support for twisted.web2 JSON-RPC servers over HTTP (rev 4 to rev 7)
0.0.1 Includes support for twisted.web JSON-RPC servers/clients over HTTP (rev 1 to rev 3)
JSON
jsonrpclib - a JSON partial analog to the python xmlrpclib
TODO
To see what's on the list for development, check out the following
Resources
twisted - http://twistedmatrix.com/trac
simplejson - http://undefined.org/python/#simplejson
txJSON-RPC (last edited 2009-10-21 02:34:22 by c-24-8-208-199)