Skip to content
pySHV version pySHV 0.2.0

Added
* `SimpleClient` that provides simple API to connect to the broker and
  perform calls as well as to handle requests and signals
* `RpcError` that represents SHV RPC errors
* `SHVMeta` and variation on SHV types based on it with companion
  functions to manage these custom extended types
* Small broker implemented purely in Python

Changed
* `RpcMessage.ErrorCode` moved and renamed to `RpcErrorCode`
* `RpcClient.read_rpc_message` now raises `RpcError` instead of
  `RpcClient.MethodCallError`
*  `ChainPackWriter`, `ChainPackReader`, `CponWriter` and `CponReader`
   now require `io.BytesIO` instead of `UnpackContext` and `PackContext`
* `RpcMessage` has now attribute `value` instead of `rpcValue` (this is
  intentional break to force users to review their code due to the type
change)
* `RpcClient` methods for sending and receiving RPC messages were
  replaced with `send` and `receive` methods.
* `rpcclient.get_next_rpc_request_id` was moved to
  `RpcMessage.next_request_id`

Removed
* `ClinetConnection`, please use `SimpleClient` or `ValueClient` instead
* `RpcClient.LoginType.NONE` as login needs to be always performed even
  when any authentication is accepted to actually pass options
* `RpcValue` and instead native types or `SHVMeta` based types are used
* `cpcontext` and `ctx` attributes of `ChainPackWriter`,
  `ChainPackReader`, `CponWriter` and `CponReader`
* `ChainPack.is_little_endian` as it can be easilly done directly