Skip to content

Releases: openfga/python-sdk

v0.6.0

28 Jun 16:47
v0.6.0
9065ff1

Choose a tag to compare

0.6.0 (2024-06-28)

  • feat: add OpenTelemetry metrics reporting (#107)

v0.5.0

17 Jun 14:49
v0.5.0
6a540f3

Choose a tag to compare

0.5.0 (2024-06-17)

  • fix: ClientTuple condition property type
  • fix: list_users should accept FgaObject type
  • fix: remove ReadAuthorizationModel calls from BatchCheck and writes
  • chore!: remove excluded users from ListUsers response

v0.4.3

10 Jun 16:31
v0.4.3
664b0b9

Choose a tag to compare

0.4.3 (2024-06-07)

  • feat: support for list users

v0.4.2

04 Apr 22:49
a83d02d

Choose a tag to compare

0.4.2 (2024-04-04)

  • feat: support for modular models metadata
  • feat: support auto-retry of failed network requests
  • refactor: remove Python 2 code
  • fix: limit the number of network retries
  • fix: Configuration class api_scheme, min_wait_in_ms and disabled_client_side_validations validation issues
  • chore: update aiohttp to 3.9.2
  • chore: update black to 24.3.0

v0.4.1

13 Feb 17:44
v0.4.1
084bca3

Choose a tag to compare

0.4.1 (2024-02-13)

  • feat: support api_url configuration option and deprecate api_scheme and api_host
  • fix: use correct content type for token request

v0.4.0

11 Jan 16:01
v0.4.0
8d1fecf

Choose a tag to compare

0.4.0 (2024-01-11)

  • feat: support for conditions
  • chore!: use latest API interfaces for type info
  • chore: add example project
  • chore: dependency updates

BREAKING CHANGES:
Note: This release comes with substantial breaking changes, especially to the interfaces due to the protobuf changes in the last release.

While the http interfaces did not break (you can still use v0.3.3 SDK with a v1.3.8+ server),
the grpc interface did and this caused a few changes in the interfaces of the SDK.

If you are using OpenFgaClient, the changes required should be smaller, if you are using OpenFgaApi a bit more changes will be needed.

You will have to modify some parts of your code, but we hope this will be to the better as a lot of the parameters are now correctly marked as required,

Some of the changes to expect:

  • The following request interfaces changed:
    • CheckRequest: the TupleKey field is now of interface CheckRequestTupleKey, you can also now pass in Context
    • ExpandRequest: the TupleKey field is now of interface ExpandRequestTupleKey
    • ReadRequest: the TupleKey field is now of interface ReadRequestTupleKey
    • WriteRequest: now takes WriteRequestWrites and WriteRequestDeletes, the latter of which accepts TupleKeyWithoutCondition
    • And more
  • The following interfaces had fields that were optional are are now required:
    • CreateStoreResponse
    • GetStoreResponse
    • ListStoresResponse
    • ListObjectsResponse
    • ReadChangesResponse
    • ReadResponse
    • AuthorizationModel
    • And more

Take a look at the changes in models in 9ed1f70 and https://github.com/openfga/python-sdk/pull/59/files for more.

v0.3.3

11 Jan 15:53
v0.3.3
88f5d37

Choose a tag to compare

0.3.3 (2024-01-02)

  • fix: correct type hints for list_relations
  • fix: handle empty TupleKey in read
  • chore: add example project

v0.3.4

09 Jan 17:58
v0.3.4
48dbb61

Choose a tag to compare

0.3.4 (2024-01-09)

[BREAKING CHANGE] Please see release notes for v0.4.0

  • feat: support for conditions
  • chore: use latest API interfaces for type info
  • chore: add example project
  • chore: dependency updates

v0.3.2

15 Dec 14:53
v0.3.2
6554306

Choose a tag to compare

0.3.2 (2023-12-15)

  • feat: allow passing ssl certs to client configuration (#51 , thanks @IsmaelMT)
  • feat: setup openfga_sdk.help for bug info (#50)

v0.3.1

04 Dec 16:10
v0.3.1
b1ecb18

Choose a tag to compare

0.3.1 (2023-12-01)

  • chore(deps): reduce min urllib3 to 1.25.11, add dependabot & bump deps