syrtis-python-client 7.0.0__tar.gz → 8.0.0__tar.gz

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.
Files changed (31) hide show
  1. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/PKG-INFO +2 -2
  2. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/README.md +1 -1
  3. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/pyproject.toml +1 -1
  4. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/common/syrtis_client.py +9 -4
  5. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/__init__.py +0 -0
  6. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/common/__init__.py +0 -0
  7. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/common/entity_schemas.py +0 -0
  8. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/common/generated_entity_schemas.py +0 -0
  9. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/common/generated_repositories.py +0 -0
  10. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/data/__init__.py +0 -0
  11. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/data/entity/__init__.py +0 -0
  12. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/data/entity/message.json +0 -0
  13. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/data/entity/message_stamp.json +0 -0
  14. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/data/entity/request.json +0 -0
  15. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/data/entity/session.json +0 -0
  16. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/data/entity/user.json +0 -0
  17. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/entity/__init__.py +0 -0
  18. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/entity/abstract_api_entity.py +0 -0
  19. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/entity/message.py +0 -0
  20. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/entity/message_stamp.py +0 -0
  21. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/entity/request.py +0 -0
  22. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/entity/session.py +0 -0
  23. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/entity/user.py +0 -0
  24. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/py.typed +0 -0
  25. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/repository/__init__.py +0 -0
  26. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/repository/abstract_api_repository.py +0 -0
  27. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/repository/message_repository.py +0 -0
  28. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/repository/message_stamp_repository.py +0 -0
  29. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/repository/request_repository.py +0 -0
  30. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/repository/session_repository.py +0 -0
  31. {syrtis_python_client-7.0.0 → syrtis_python_client-8.0.0}/src/syrtis_python_client/repository/user_repository.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: syrtis-python-client
3
- Version: 7.0.0
3
+ Version: 8.0.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.0.0
18
18
 
19
19
  ## Table of Contents
20
20
 
@@ -1,6 +1,6 @@
1
1
  # python_client
2
2
 
3
- Version: 7.0.0
3
+ Version: 8.0.0
4
4
 
5
5
  ## Table of Contents
6
6
 
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "syrtis-python-client"
9
- version = "7.0.0"
9
+ version = "8.0.0"
10
10
  authors = [
11
11
  { name = "weeger", email = "contact@syrtis.ai" },
12
12
  ]
@@ -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