syrtis-python-client 7.0.0__py3-none-any.whl → 8.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,11 +12,16 @@ class SyrtisClient:
12
12
  API_VERSION_2025_3 = "2025-3"
13
13
  API_VERSION_2026_1 = "2026-1"
14
14
  API_VERSION_DEFAULT = API_VERSION_2026_1
15
- BASE_URL = "https://api.syrtis.ai/api/"
16
- DEFAULT_BASE_URL = BASE_URL + API_VERSION_DEFAULT + "/"
17
15
 
18
- def __init__(self, base_url: str | None = None, api_key: str | None = None) -> None:
19
- self.base_url = (base_url or self.DEFAULT_BASE_URL).rstrip("/") + "/"
16
+ def __init__(
17
+ self,
18
+ host: str,
19
+ api_key: str | None = None,
20
+ api_version: str | None = None,
21
+ ) -> None:
22
+ version = api_version or self.API_VERSION_DEFAULT
23
+ normalized_host = host.rstrip("/") + "/"
24
+ self.base_url = f"{normalized_host}api/{version}/"
20
25
  self.api_key = api_key
21
26
  self._repositories: dict[type[Any], Any] = {}
22
27
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: syrtis-python-client
3
- Version: 7.0.0
3
+ Version: 8.1.0
4
4
  Author-Email: weeger <contact@syrtis.ai>
5
5
  License: MIT
6
6
  Classifier: Programming Language :: Python :: 3
@@ -14,7 +14,7 @@ Description-Content-Type: text/markdown
14
14
 
15
15
  # python_client
16
16
 
17
- Version: 7.0.0
17
+ Version: 8.1.0
18
18
 
19
19
  ## Table of Contents
20
20
 
@@ -1,12 +1,12 @@
1
- syrtis_python_client-7.0.0.dist-info/METADATA,sha256=d8WX2wmSypuEofioQmR1jpJFbgCiIf2FpGnIw38JNUQ,6070
2
- syrtis_python_client-7.0.0.dist-info/WHEEL,sha256=Z36eTX6lG3PITRleSd5hAZHCcz52yg3c0JQVxKBbLW0,90
3
- syrtis_python_client-7.0.0.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
1
+ syrtis_python_client-8.1.0.dist-info/METADATA,sha256=rkAnCDD_srWxlZqbt95LvRCqam3lgKsiij_RYZrAzjA,6070
2
+ syrtis_python_client-8.1.0.dist-info/WHEEL,sha256=VP-D4TPS230sME9Z3vb3INXvo1yt0924YRm5AOsk_dE,90
3
+ syrtis_python_client-8.1.0.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
4
  syrtis_python_client/__init__.py,sha256=TqDaBqiN8Mp8F-DqaQCEbXGqZHEsmMxZBDpDOp98dMU,138
5
5
  syrtis_python_client/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  syrtis_python_client/common/entity_schemas.py,sha256=vhRfGntR9AUAy6EqnQm6DEBu600ZRv6l2jO42skViZY,262
7
7
  syrtis_python_client/common/generated_entity_schemas.py,sha256=7Q5pIoV0RrzRrnXo2W-gleZYzde6NsMVGcouO8eC36Q,639
8
8
  syrtis_python_client/common/generated_repositories.py,sha256=9ZDL1Zbk-quZ28vNA0dRIv0duPGlOmDEEhUFA5z8n5M,602
9
- syrtis_python_client/common/syrtis_client.py,sha256=LPOso5PcATjE5RF0mSDonycNFHPqQXyKRyCoCuo655M,3420
9
+ syrtis_python_client/common/syrtis_client.py,sha256=t8n27RMwXrXFiBl-1gHa4CjjDo8FC1L8mXuJ1GYDIWs,3457
10
10
  syrtis_python_client/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  syrtis_python_client/data/entity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  syrtis_python_client/data/entity/message.json,sha256=9tbj6Fw8PMKols4IYRAJHMe6-Qlw3WCf6ZCayJHre0k,16107
@@ -29,4 +29,4 @@ syrtis_python_client/repository/message_stamp_repository.py,sha256=Sz9WCwaA0OyGQ
29
29
  syrtis_python_client/repository/request_repository.py,sha256=L_-spL7dg-os5YrXNSSaJL7zrujnhr2QpR4dfQelr6k,337
30
30
  syrtis_python_client/repository/session_repository.py,sha256=BFlFQqpTup2HS0O3AtCPe8z2kwg_ATMLEwl3LOY3NYM,1363
31
31
  syrtis_python_client/repository/user_repository.py,sha256=JqG7QNa3Yc5sGalA9s_F9njni6SbpFTqN2gI5XtM70U,319
32
- syrtis_python_client-7.0.0.dist-info/RECORD,,
32
+ syrtis_python_client-8.1.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: pdm-backend (2.4.8)
2
+ Generator: pdm-backend (2.4.9)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any