This PR pins jsonrpcserver to the latest release 4.0.1.
Changelog
### 4.0.1
```
- Include exception in ExceptionResponse. Closes 74.
```
### 4.0.0
```
_The 4.x releases will support Python 3.6+ only._
- Dispatch now works only with `Methods` object. No longer accepts a
dictionary or list.
- `dispatch` no longer requires a "methods" argument. If not passed, uses the
global methods object.
- Methods initialiser has a simpler api - Methods(func1, func2, ...) or
Methods(name1=func1, name2=func2, ...).
- No more jsonrpcserver exceptions. Calling code will _always_ get a valid
JSON-RPC response from `dispatch`. The old `InvalidParamsError` is gone
- instead do a regular `assert` on arguments.
- `response.is_notification` renamed to `response.wanted`, which is the
opposite of is_notification. This means the original request was not a
notification, it had an id, and does expect a response.
- Removed "respond to notification errors" option, which broke the
specification. We still respond to invalid json/json-rpc requests, in which
case it's not possible to know if the request is a notification.
- Removed the "config" module. Added external config file, `.jsonrpcserverrc`.
(alternatively configure with arguments to dispatch)
- Removed the "six" dependency, no longer needed.
- Configure logging Pythonically.
- Add type hints
- Move tests to pytest
- Passing a context object to dispatch now sets it as the first positional
argument to the method. `def fruits(ctx, color):`
- Check params with regular asserts.
```
### 3.5.6
```
- Add trim_log_values dispatch param. (65)
- Fix a missing import
```
### 3.5.5
```
- Rewrite of dispatch(), adding parameters to configure the dispatch that were
previously configured by modifying the `config` module. That module is now
deprecated and will be removed in 4.0.
```
### 3.5.4
```
- Refactoring
```
### 3.5.3
```
- Allow requests to have any non-None id
```
### 3.5.2
```
- Refactor for Request subclassing
```
### 3.5.1
```
- Include context data in regular (synchronous) methods.dispatch
```
### 3.5.0
```
- Pass some context data through dispatch to the methods.
- Fix not calling notifications in batch requests.
```
### 3.4.3
```
- Add `Response.is_notification` attribute
```
### 3.4.2
```
- Fix `convert_camel_case` with array params
```
### 3.4.1
```
- Disable logging in config
- Performance improved
- Fix async batch requests
```
### 3.4.0
```
- Added asyncio support. (Python 3.5+)
- Added a *methods* object to the jsonrpcserver module (so you can import
jsonrpcserver.methods, rather than instantiating your own).
- Added methods.dispatch().
```
### 3.3.4
```
- Fix Methods.serve_forever in python 2 (thanks bplower)
```
### 3.3.3
```
- Updated method of logging exception (thanks bplower)
```
### 3.3.2
```
- Pass Methods named args onto MutableMapping
- Remove unused logger
```
### 3.3.1
```
- Allow passing dict to Methods constructor
```
### 3.3.0
```
- A basic HTTP server has been added.
```
Links
- PyPI: https://pypi.org/project/jsonrpcserver
- Changelog: https://pyup.io/changelogs/jsonrpcserver/
- Repo: https://github.com/bcb/jsonrpcserver
This PR pins jsonrpcserver to the latest release 4.0.1.
Changelog
### 4.0.1 ``` - Include exception in ExceptionResponse. Closes 74. ``` ### 4.0.0 ``` _The 4.x releases will support Python 3.6+ only._ - Dispatch now works only with `Methods` object. No longer accepts a dictionary or list. - `dispatch` no longer requires a "methods" argument. If not passed, uses the global methods object. - Methods initialiser has a simpler api - Methods(func1, func2, ...) or Methods(name1=func1, name2=func2, ...). - No more jsonrpcserver exceptions. Calling code will _always_ get a valid JSON-RPC response from `dispatch`. The old `InvalidParamsError` is gone - instead do a regular `assert` on arguments. - `response.is_notification` renamed to `response.wanted`, which is the opposite of is_notification. This means the original request was not a notification, it had an id, and does expect a response. - Removed "respond to notification errors" option, which broke the specification. We still respond to invalid json/json-rpc requests, in which case it's not possible to know if the request is a notification. - Removed the "config" module. Added external config file, `.jsonrpcserverrc`. (alternatively configure with arguments to dispatch) - Removed the "six" dependency, no longer needed. - Configure logging Pythonically. - Add type hints - Move tests to pytest - Passing a context object to dispatch now sets it as the first positional argument to the method. `def fruits(ctx, color):` - Check params with regular asserts. ``` ### 3.5.6 ``` - Add trim_log_values dispatch param. (65) - Fix a missing import ``` ### 3.5.5 ``` - Rewrite of dispatch(), adding parameters to configure the dispatch that were previously configured by modifying the `config` module. That module is now deprecated and will be removed in 4.0. ``` ### 3.5.4 ``` - Refactoring ``` ### 3.5.3 ``` - Allow requests to have any non-None id ``` ### 3.5.2 ``` - Refactor for Request subclassing ``` ### 3.5.1 ``` - Include context data in regular (synchronous) methods.dispatch ``` ### 3.5.0 ``` - Pass some context data through dispatch to the methods. - Fix not calling notifications in batch requests. ``` ### 3.4.3 ``` - Add `Response.is_notification` attribute ``` ### 3.4.2 ``` - Fix `convert_camel_case` with array params ``` ### 3.4.1 ``` - Disable logging in config - Performance improved - Fix async batch requests ``` ### 3.4.0 ``` - Added asyncio support. (Python 3.5+) - Added a *methods* object to the jsonrpcserver module (so you can import jsonrpcserver.methods, rather than instantiating your own). - Added methods.dispatch(). ``` ### 3.3.4 ``` - Fix Methods.serve_forever in python 2 (thanks bplower) ``` ### 3.3.3 ``` - Updated method of logging exception (thanks bplower) ``` ### 3.3.2 ``` - Pass Methods named args onto MutableMapping - Remove unused logger ``` ### 3.3.1 ``` - Allow passing dict to Methods constructor ``` ### 3.3.0 ``` - A basic HTTP server has been added. ```Links
- PyPI: https://pypi.org/project/jsonrpcserver - Changelog: https://pyup.io/changelogs/jsonrpcserver/ - Repo: https://github.com/bcb/jsonrpcserver