jsonrpcserver
jsonrpcserver copied to clipboard
Process incoming JSON-RPC requests in Python
Currently, the parameters' validation is bound to ``` try: signature(func).bind(*extract_args(request, context), **extract_kwargs(request)) except TypeError as exc: return Left(InvalidParamsResult(str(exc))) return Right(func) ``` in [dispatcher.py](https://github.com/explodinglabs/jsonrpcserver/blob/cbc8e39ae968ed439dafa5e6e0619f2ccaa0a8f1/jsonrpcserver/dispatcher.py#L141) This validation checks if the method's signature...
https://pip.pypa.io/en/stable/reference/build-system/
Since the server should be stateless and its an request -> reply flow it would be reasonable that the server supported both JSON-RPC 1.0 and 2.0? Just ignore the "jsonrpc":...
Re discussion #215, add the feature back to convert method and parameter names to snake case.
Hello, I've hit a little issue when using `jsonrpcserver` with PyInstaller: ``` FileNotFoundError: [Errno 2] No such file or directory: `path-to\\jsonrpcserver\\request-schema.json' ``` I've submitted a [simple hook for PyInstaller](https://github.com/pyinstaller/pyinstaller-hooks-contrib/pull/126) which...
```python from jsonrpcserver.methods import Methods # During initialization, Methods class receives a list of decorators admin_methods = Methods(decorators=[require_user, require_role('admin')]) # When adding a new method, the function will be wrapped...
Since we're removing OSlash, the required Python version may be lower than 3.8.