Replies: 1 comment 1 reply
-
Hi @hovi , interesting suggestions, I'll respond to each:
If I'm understanding correctly, the library already works like that - it gives an Error response for any unhandled exception raised in the method.
There is a methods param passed to dispatch I think would help with this. Better to use a dict than using OOP in my opinion.
We've had transport frameworks in the past but removed them for reasons:
jsonrpcserver is just Having said that, there's no reason another library can't build on jsonrpcserver, using it as a dependency. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This library seems like solid foundation, to avoid too much boilerplate, I would like to do things like:
Success
orError
@method
that can be used on class that will then automatically add all class method to dispatcher (possibly with help of ABC module and@abstractmethod
)Basically what I have is interface that I want to be used over json-rpc and to create json-rpc client and server as simply as possible without much boilerplate code as there will be more interfaces like that.
Is this anything you see as useful in this library (and it's client part)?
I will also probably add other transport methods (so far I found in the code only "serve", which does simple HTTP). I may possibly add TCP or intergrate with django routing depending on what will we require for our use-cases.
Happy to make some PRs.
Beta Was this translation helpful? Give feedback.
All reactions