This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
1.1.0
PyOTA v1.1.0
IMPORTANT: This version includes several changes that are not backwards-compatible with v1.0.x!
Release Notes
Backwards-Incompatible Changes
- Dropped support for IRI nodes below v1.1.2.4.
- [#13] Removed support for
udp://
API URLs. Usehttp://
instead. getNewAddresses
now returns a dict. All API commands now have consistent return types.- Restricted which commands each API class can create (
StrictIota
can only create core commands;Iota
can create core+extended).__getattr__
now raises anInvalidCommand
error if an unsupported command is requested (previously it would return aCustomCommand
instance).- Implemented
create_command
method to createCustomCommand
objects.
- Removed
LogWrapper
.- To attach a logger to an adapter, invoke its (new)
set_logger
method. - Adapters will now log more information about HTTP requests, including URL and request/response headers.
- To attach a logger to an adapter, invoke its (new)
New Features
- [#19] Implemented support for sandbox nodes.
Enhancements/Fixes
- [#6]
addNeighbors
andremoveNeighbors
now only acceptudp://
URIs. - [#7] Added support for
https://
API URLs. - Improved handling of non-200 responses from nodes.
- Adapters now use
urlsplit
to parse URIs. - Adapters now provide more context vars when raising
BadApiResponse
. discover_commands
now also returns all command objects that it finds.- Changed
requests
dependency torequests[security]
.- See https://github.com/kennethreitz/requests/issues/1995 for more info.
- Cleaned up code in
examples/shell.py
. - General documentation cleanup and fixes.
Signature/Checksums
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
# PyOTA v1.1.0
**IMPORTANT:** This version includes several changes that are not backwards-compatible with v1.0.x!
## Release Notes
### Backwards-Incompatible Changes
- - Dropped support for IRI nodes below v1.1.2.4.
- - [#13] Removed support for `udp://` API URLs. Use `http://` instead.
- - `getNewAddresses` now returns a dict. All API commands now have consistent return types.
- - Restricted which commands each API class can create (`StrictIota` can only create core commands; `Iota` can create core+extended).
- `__getattr__` now raises an `InvalidCommand` error if an unsupported command is requested (previously it would return a `CustomCommand` instance).
- Implemented `create_command` method to create `CustomCommand` objects.
- - Removed `LogWrapper`.
- To attach a logger to an adapter, invoke its (new) `set_logger` method.
- Adapters will now log more information about HTTP requests, including URL and request/response headers.
### New Features
- - [#19] Implemented support for sandbox nodes.
### Enhancements/Fixes
- - [#6] `addNeighbors` and `removeNeighbors` now only accept `udp://` URIs.
- - [#7] Added support for `https://` API URLs.
- - Improved handling of non-200 responses from nodes.
- - Adapters now use `urlsplit` to parse URIs.
- - Adapters now provide more context vars when raising `BadApiResponse`.
- - `discover_commands` now also returns all command objects that it finds.
- - Changed `requests` dependency to `requests[security]`.
- See https://github.com/kennethreitz/requests/issues/1995 for more info.
- - Cleaned up code in `examples/shell.py`.
- - General documentation cleanup and fixes.
## Binary Distribution Checksums
- - PyOTA-1.1.0-py2.py3-none-any.whl
- f64bdc2991560770b7b3b77e45a3cf2c894108e81ac2f0ff6e91244f619ad7a4
- - PyOTA-1.1.0.tar.gz
- ef20cc787e9bd858b45474cdf17ae051b2b4b658f8bf0efeff06609f9e2e4fdd
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCAAGBQJYjRKRAAoJEIyGP45e1NNDDGIP/1HuiIJmmsLOmzs5wNh9Kgds
f59sa6L70TNc3E18PZyyJ6vnatQy5ddz1A2lERXAAl29Tcq86I9u0au14xizDGdy
ggesVu3j7ooxOCmlky/sowWQd8SoKHKShLEO+QT4MHEoI7EBfnB3VBN82c6d5YgM
L7ZTIlxlDM0byhCvHEv+BAkvTldJeXBKypNL7euHuGJPCrxJCZmpg/rB/lKFNao/
XyLRyboW1UN/eIxshL5jy1hOWV2QybU069RvX4bm8J1BJOkMQgJkocqDaylxUEih
8DGpv/JLS/VzQBmfp2MrWhVm79H1ZGj9NW+JsWsq4b+CPz5YgNpjr5q3BYwO302C
RptmOp2J0gxbpfOTn/jsyNt6fUu90GZgS+OZRRim3oILgRwg43vXxXNm2krX2NIP
A+BcNQlIOzOaZVISA7ov/v5C3jEHSZPV+hpIx7g5onwm9Z94k+3mf494yW7ai6Z0
uY2SpT8hMvbyNo1nGNfIIjcxamRd9WAcJ0e4fTxbHkPkq239uRnQgo4H+jyTPEdh
ZPSgKyNMgRoD24zQaIpPqE34gzzJdrg70H3bgjvUwVlIcvb1ZfUPB+RtIH20zeBl
xyffuWUgMLdshH5M2jYqOriKllCt56u7GgHVBiaU5ppmc1Xq3kMxINkQpnihEyKH
eX76t4ZNi47p2+P9GPJR
=eYlO
-----END PGP SIGNATURE-----