Client library for TriOptima APIs
Client code for accessing the TriOptima APIs.
Added allow_rewind to ack.
Handle both 200 and 201 as an OK response codes from triVent.
Added changelog to PyPI metadata
First version under the new package name tri.api. This is to align with the triAPI java library and is also more appropriate since the common parts for authentication is usefull for other TriOptima APIs besides triVent.
Changed name to tri.api (and import path to tri_api)
Don’t set any scopes by default.
Event sessions need to explicitly set the scope of auth_client_id:profile.
Authenticated sessions using username and password now needs to set the scope explicitly
Wrap timeout error’s in a lib specific error: TriventTimeout
Don’t set default scope to global.
Parse EventType on polling.
Fix request retry on 401 not call back to functions in classes that inherit Authenticated session.
Make token expiry optional from the authentication server.
Added optional token_url parameter for when the AuthenticatedSession is used for non-Trioptima authentication servers.
Change import path from tri.event to tri_event to conform to other packages. (And increase import time performance during test setup)
Make an authentication retry if unauthorized to improve robustness
Update status to production ready
Use configured proxy and timeouts also for authentication
Delay authentication until first request is made
Change base class of EventSession to request.Session
Add EventSession.access_token and EventSession.token_expiry attributes
Cleanup of logging
Add session renewal on access token expiry
Improve exception on failure to log in
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for tri.api-4.0.4-py2.py3-none-any.whl