Skip to content

Commit e07ce96

Browse files
authored
release: v0.9.2 (#178)
1 parent cde5145 commit e07ce96

File tree

15 files changed

+23
-18
lines changed

15 files changed

+23
-18
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22

3-
## [Unreleased](https://github.com/openfga/python-sdk/compare/v0.9.1...HEAD)
3+
## [Unreleased](https://github.com/openfga/python-sdk/compare/v0.9.2...HEAD)
4+
5+
### [0.9.2](https://github.com/openfga/python-sdk/compare/v0.9.1...v0.9.2) (2025-03-25)
6+
7+
- fix(telemetry): fixes for telemetry attributes and metrics tracking
8+
- fix: REST client should not close after `stream` request
49

510
## v0.9.1
611

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.9.1
1+
0.9.2

example/example1/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ attrs >= 23.1.0
44
frozenlist >= 1.4.1
55
idna >= 3.6
66
multidict >= 6.0.4
7-
openfga-sdk >= 0.9.1
7+
openfga-sdk >= 0.9.2
88
python-dateutil >= 2.8.2
99
urllib3 >= 2.1.0
1010
yarl >= 1.9.4

example/example1/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
NAME = "example1"
1717
VERSION = "0.0.1"
18-
REQUIRES = ["openfga-sdk >= 0.9.1"]
18+
REQUIRES = ["openfga-sdk >= 0.9.2"]
1919

2020
setup(
2121
name=NAME,

openfga_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
1111
"""
1212

13-
__version__ = "0.9.1"
13+
__version__ = "0.9.2"
1414

1515
from openfga_sdk.api.open_fga_api import OpenFgaApi
1616
from openfga_sdk.api_client import ApiClient

openfga_sdk/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
from openfga_sdk.telemetry.attributes import TelemetryAttribute, TelemetryAttributes
4040

4141

42-
DEFAULT_USER_AGENT = "openfga-sdk python/0.9.1"
42+
DEFAULT_USER_AGENT = "openfga-sdk python/0.9.2"
4343

4444

4545
def random_time(loop_count, min_wait_in_ms):

openfga_sdk/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async def _obtain_token(self, client):
8383
{
8484
"Accept": "application/json",
8585
"Content-Type": "application/x-www-form-urlencoded",
86-
"User-Agent": "openfga-sdk (python) 0.9.1",
86+
"User-Agent": "openfga-sdk (python) 0.9.2",
8787
}
8888
)
8989

openfga_sdk/sync/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from openfga_sdk.telemetry.attributes import TelemetryAttribute, TelemetryAttributes
3939

4040

41-
DEFAULT_USER_AGENT = "openfga-sdk python/0.9.1"
41+
DEFAULT_USER_AGENT = "openfga-sdk python/0.9.2"
4242

4343

4444
def random_time(loop_count, min_wait_in_ms) -> float:

openfga_sdk/sync/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _obtain_token(self, client):
8383
{
8484
"Accept": "application/json",
8585
"Content-Type": "application/x-www-form-urlencoded",
86-
"User-Agent": "openfga-sdk (python) 0.9.1",
86+
"User-Agent": "openfga-sdk (python) 0.9.2",
8787
}
8888
)
8989

openfga_sdk/telemetry/metrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def requestDuration(
179179

180180
if (
181181
isinstance(configuration, TelemetryConfiguration)
182-
and type(configuration.metrics) is TelemetryMetricsConfiguration
182+
and isinstance(configuration.metrics, TelemetryMetricsConfiguration)
183183
and isinstance(
184184
configuration.metrics.fga_client_request_duration,
185185
TelemetryMetricConfiguration,
@@ -228,7 +228,7 @@ def queryDuration(
228228

229229
if (
230230
isinstance(configuration, TelemetryConfiguration)
231-
and isinstance(configuration.metrics, TelemetryMetricConfiguration)
231+
and isinstance(configuration.metrics, TelemetryMetricsConfiguration)
232232
and isinstance(
233233
configuration.metrics.fga_client_query_duration,
234234
TelemetryMetricConfiguration,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
NAME = "openfga-sdk"
21-
VERSION = "0.9.1"
21+
VERSION = "0.9.2"
2222
REQUIRES = []
2323

2424

test/api/open_fga_api_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ async def test_check_api_token(self, mock_request):
15471547
{
15481548
"Accept": "application/json",
15491549
"Content-Type": "application/json",
1550-
"User-Agent": "openfga-sdk python/0.9.1",
1550+
"User-Agent": "openfga-sdk python/0.9.2",
15511551
"Authorization": "Bearer TOKEN1",
15521552
}
15531553
)
@@ -1601,7 +1601,7 @@ async def test_check_custom_header(self, mock_request):
16011601
{
16021602
"Accept": "application/json",
16031603
"Content-Type": "application/json",
1604-
"User-Agent": "openfga-sdk python/0.9.1",
1604+
"User-Agent": "openfga-sdk python/0.9.2",
16051605
"Custom Header": "custom value",
16061606
}
16071607
)

test/oauth2_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def test_get_authentication_obtain_client_credentials(self, mock_request):
8484
{
8585
"Accept": "application/json",
8686
"Content-Type": "application/x-www-form-urlencoded",
87-
"User-Agent": "openfga-sdk (python) 0.9.1",
87+
"User-Agent": "openfga-sdk (python) 0.9.2",
8888
}
8989
)
9090
mock_request.assert_called_once_with(

test/sync/oauth2_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_get_authentication_obtain_client_credentials(self, mock_request):
8484
{
8585
"Accept": "application/json",
8686
"Content-Type": "application/x-www-form-urlencoded",
87-
"User-Agent": "openfga-sdk (python) 0.9.1",
87+
"User-Agent": "openfga-sdk (python) 0.9.2",
8888
}
8989
)
9090
mock_request.assert_called_once_with(

test/sync/open_fga_api_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ async def test_check_api_token(self, mock_request):
15471547
{
15481548
"Accept": "application/json",
15491549
"Content-Type": "application/json",
1550-
"User-Agent": "openfga-sdk python/0.9.1",
1550+
"User-Agent": "openfga-sdk python/0.9.2",
15511551
"Authorization": "Bearer TOKEN1",
15521552
}
15531553
)
@@ -1601,7 +1601,7 @@ async def test_check_custom_header(self, mock_request):
16011601
{
16021602
"Accept": "application/json",
16031603
"Content-Type": "application/json",
1604-
"User-Agent": "openfga-sdk python/0.9.1",
1604+
"User-Agent": "openfga-sdk python/0.9.2",
16051605
"Custom Header": "custom value",
16061606
}
16071607
)

0 commit comments

Comments
 (0)