Skip to main content

A tornado RPC framework

Project description

A tornado RPC library.

This RPC framework uses tornado
so its very quick and asynchronous.

This framework supports regular and
asynchronous methods to be registered
with the TornRPCServer. The below example
shows both. The only difference in the
framework is how you register it.
Normal functions are registered using
"server.register()". Async functions
are registered using "server.register_async()".

For more detailed info see the docstring
for TornRPCClient and TornRPCServer.

### example server code ###

from tornado import gen
from tornrpc.server import TornRPCServer

def test(arg):
return "You said %s" % arg

def testasync(arg):
raise gen.Return("You said async %s" % arg)

server = TornRPCServer()

### example client code ###

from tornrpc.client import TornRPCClient

client = TornRPCClient('localhost:8080')

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for TornRPC, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size TornRPC-1.0.4.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page