Skip to main content

Client library for TriOptima APIs

Project description

Client code for accessing the TriOptima APIs.

License

BSD

Changelog

5.0.0 (2025-08-28)

  • Add support for using client_credentials as grant_type. This will be used if only client_id and client_secret are provided.

  • Remove extra_params since it was added to support client_credentials as grant_type

4.0.5 (2024-05-22)

Add extra params to authenticate call

4.0.4 (2022-11-11)

Added allow_rewind to ack.

4.0.3 (2022-10-04)

Handle both 200 and 201 as an OK response codes from triVent.

4.0.1 (2022-03-30)

Added changelog to PyPI metadata

4.0.0 (2022-03-29)

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)

tri.event:3.0.0 (2021-12-07)

  • 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

tri.event:2.2.0 (2021-12-06)

  • Wrap timeout error’s in a lib specific error: TriventTimeout

tri.event:2.1.2 (2021-10-26)

  • Don’t set default scope to global.

  • Parse EventType on polling.

tri.event:2.1.1 (2021-06-09)

  • Fix request retry on 401 not call back to functions in classes that inherit Authenticated session.

tri.event:2.1.0 (2020-12-14)

  • Make token expiry optional from the authentication server.

  • Added optional token_url parameter for when the AuthenticatedSession is used for non-Trioptima authentication servers.

tri.event:2.0.0 (2019-12-03)

  • Change import path from tri.event to tri_event to conform to other packages. (And increase import time performance during test setup)

tri.event:1.0.1 (2019-09-02)

  • Improve documentation

tri.event:1.0.0 (2019-05-10)

  • Make an authentication retry if unauthorized to improve robustness

  • Update status to production ready

tri.event:0.0.7 (2019-03-22)

  • Use configured proxy and timeouts also for authentication

  • Delay authentication until first request is made

tri.event:0.0.6 (2019-02-18)

  • Change base class of EventSession to request.Session

tri.event:.0.5 (2019-01-22)

  • Fix packaging

  • Add EventSession.access_token and EventSession.token_expiry attributes

tri.event:0.0.4 (2019-01-21)

  • Cleanup of logging

tri.event:0.0.3 (2019-01-10)

  • Add session renewal on access token expiry

  • Improve exception on failure to log in

tri.event:0.0.2 (2018-12-20)

  • Initial version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tri_api-5.0.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tri_api-5.0.0-py2.py3-none-any.whl (8.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tri_api-5.0.0.tar.gz.

File metadata

  • Download URL: tri_api-5.0.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for tri_api-5.0.0.tar.gz
Algorithm Hash digest
SHA256 8e9fa0df45aaee096a20ee77971f4de85f0d9488b6e464ae30ddafbeccb609b9
MD5 a981924d12fa298718f0b22cd0f54dea
BLAKE2b-256 4c87f30f6e460616d025039ea8fd07486524128491682bd9f51f83a0a1b736e0

See more details on using hashes here.

File details

Details for the file tri_api-5.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: tri_api-5.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for tri_api-5.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b4e0e9914ac40e88927c08e01b51c45296d484183f0a72d9d6e483b827edcce7
MD5 3ab63ea04473e5758f99d36764d6a995
BLAKE2b-256 e59e0c87e578e503b749f44e3bbee676884ea2635be939714b553867c89f9afe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page