Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tethik/mongo-rpc

Experimental python RPC using a mongodb collection
https://github.com/tethik/mongo-rpc

Last synced: 28 days ago
JSON representation

Experimental python RPC using a mongodb collection

Awesome Lists containing this project

README

        

# mongo-rpc
Experimental python RPC using a mongodb collection

# Usage:

Server
```
from mongorpc import MongoRPC

rpc = MongoRPC()

@rpc.register()
def hello(msg):
print("hello {}".format(msg))

rpc.start()
```

Client
```
from mongorpc import MongoRPCClient

client = MongoRPCClient()
client.hello("world")
```

# Future work
* Perhaps Conform to [jsonrpc standard](http://www.jsonrpc.org/specification).
* Asynchronous versus synchronous calls?
* Save results from method call.
* Transaction safety, to support more than one executing server?
* Perhaps serialize method code. Eggify?
* Tailable/capped collections.