Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
/ mongo-rpc Public archive

Experimental python RPC using a mongodb collection

License

Notifications You must be signed in to change notification settings

Tethik/mongo-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
  • 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.

About

Experimental python RPC using a mongodb collection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages