github openfga/python-sdk v0.11.0

49 minutes ago

Added

  • add an opt-in merge_equivalent_checks option to batch_check, which sends checks that will get the same answer, like relation aliases and exact repeats, only once. Enable it by passing "merge_equivalent_checks": True in the batch_check options, with an authorization model ID set (#334) (9176481)
  • add metrics for merge_equivalent_checks, listed in docs/opentelemetry.md (#334) (9176481)

Fixed

  • allow a minimum retry wait of 0 ms (#332) (1e99d08)
  • honor Retry-After delay seconds (#340) (a307e52)
  • raise errors that happen while reading a streamed response instead of ending the stream silently (ab1a5c8)
  • release the connection as soon as a streamed response is closed (ab1a5c8)
  • retry token requests that fail with 429 or 5xx (#331) (214ec02), closes #139
  • retry transient network errors such as dropped connections and timeouts in the sync and async clients, including token requests and streamed responses (ab1a5c8)
  • stop jitter() returning 0 whenever pytest is imported (#348) (60caaa5), closes #346
  • sync client raises the underlying urllib3 error instead of MaxRetryError once retries are exhausted (ab1a5c8)
  • turn off aiohttp's own resend of GET, PUT and DELETE after a dropped connection so retry_params is the only retry policy; on aiohttp 3.10.x there is no switch for it and such a request can still be sent once more than max_retry allows (ab1a5c8)

Documentation

Miscellaneous

What's Changed

New Contributors

Full Changelog: v0.10.6...v0.11.0

Don't miss a new python-sdk release

NewReleases is sending notifications on new releases.