Replies: 4 comments 1 reply
-
How I picture generating requests: (Removed because it may change) |
Beta Was this translation helpful? Give feedback.
-
Beginning work on this today. |
Beta Was this translation helpful? Give feedback.
-
Releases are available, see discussion. |
Beta Was this translation helpful? Give feedback.
-
Hmm, I thought a while back I wrote a comment here about this plan, but maybe I never sent it. At first I was going to say that the old Client class was very useful at least for having the That said, having seen the end results of this refactoring, I like it and it makes the library much simpler and more easily reusable, so congrats! The examples help too. I wonder if it wouldn't still make sense to add some more advanced examples (I could provide one) demonstrating something like #154 involving asynchronous responses, but maybe it's not so common (which I find surprising, but maybe that's just me being overly focused on my use case :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With the jsonrpcserver rebuild
nearlyfinished I'm starting to turn my attention to this client library.The main problem with this library is it's trying to support a set of frameworks (aiohttp, requests, socket, tornado, websockets and zeromq), which brings a number of problems:
jsonrpcserver is a better library because it simply processes a JSON-RPC request and that's all. The user handles receiving the request and sending back the response.
So in the next version of jsonrpcclient I want to remove the sending & receiving.
Using the library with "requests" would look something like:
One could write a wrapper to send and parse a request, but that would be up to the user.
Interested to hear others thoughts as this would be a major overhaul.
Beta Was this translation helpful? Give feedback.
All reactions