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
- Host: GitHub
- URL: https://github.com/tethik/mongo-rpc
- Owner: Tethik
- License: mit
- Archived: true
- Created: 2015-05-26T19:59:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-17T11:47:08.000Z (over 10 years ago)
- Last Synced: 2024-12-21T06:11:56.045Z (11 months ago)
- Language: Python
- Size: 164 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.