Change Log¶
The following sections only highlight breaking code changes. Please refer to https://github.com/python-rt/python-rt/blob/master/CHANGELOG.md for the full changelog.
Version 3.0.0 (2022-05-17)¶
The following is a major release of the rt library. There is support for the REST API version 1 as well as version 2. Please note that this release contains breaking changes and requires adaptations to existing code, even if you are sticking to version 1 of the API. These changes were necessary in order to properly support both API versions.
Importing¶
Previously doing:
import rt c = rt.Rt(...)
was enough to import the main class Rt as well as all exception classes. Starting with version 3, only the main exception class RtError is imported when importing the rt module.
In order to continue using the API version 1 you need to explicitly import it from the rest1 submodule:
import rt.rest1 c = rt.rest1.Rt(...)
If you need access to specific exception class, make sure to import the exceptions module:
import rt.exceptions
Everything else is the same as with version 2 of the library.
Warning
The minimum supported version of python has been raised to 3.7.
Exception classes¶
Some exception classes were renamed to follow proper naming scheme (https://peps.python.org/pep-0008/#exception-names):
<3.0.0 |
>=3.0.0 |
|---|---|
NotAllowed |
NotAllowedError |
UnexpectedResponse |
UnexpectedResponseError |
UnexpectedMessageFormat |
UnexpectedMessageFormatError |
InvalidUseError |
InvalidUseError |
BadRequestError |
BadRequestError |