Skip to content

Releases: openfga/python-sdk

v0.4.2

04 Apr 22:49
a83d02d
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare

0.3.1 (2023-12-01)

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

v0.3.0

03 Nov 06:03
v0.3.0
5d4e18f
Compare
Choose a tag to compare

0.3.0 (2023-11-02)

  • feat(client): introduce synchronous OpenFgaClient (c92b436)
  • refactor(config): extract oauth2 from credentials, removing logic from credentials configuration (f91d14b)
  • feat(client): performance improvements to batch_check (d8f2d42)

v0.2.1

05 Sep 17:01
v0.2.1
1c0d545
Compare
Choose a tag to compare

0.2.1 (2023-09-05)

v0.2.0

25 May 21:13
v0.2.0
d35fef5
Compare
Choose a tag to compare

0.2.0 (2023-05-25)

Changes:

  • [BREAKING] feat!: schema_version is now required when calling write_authorization_model
  • [BREAKING] chore!: drop support for python < 3.10
  • feat(client): add OpenFgaClient wrapper see docs, see the v0.1.1 docs for the OpenFgaApi docs
  • feat(client): implement batch_check to check multiple tuples in parallel
  • feat(client): implement list_relations to check in one call whether a user has multiple relations to an objects
  • feat(client): add support for a non-transactional write
  • feat(validation): ensure storeId and authorizationModelId are in valid ulid format
  • chore(config): bump default max retries to 15
  • chore(deps): upgrade dependencies