Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Created: 2015-05-26T19:59:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-17T11:47:08.000Z (over 9 years ago)
- Last Synced: 2023-03-24T04:58:00.240Z (over 1 year ago)
- Language: Python
- Size: 164 KB
- Stars: 1
- Watchers: 2
- 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 MongoRPCrpc = MongoRPC()
@rpc.register()
def hello(msg):
print("hello {}".format(msg))rpc.start()
```Client
```
from mongorpc import MongoRPCClientclient = 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.