python3-core-api-client 2.10.1__tar.gz → 2.12__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.
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/PKG-INFO +7 -7
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/README.md +3 -3
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/pyproject.toml +4 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/_encoders.py +3 -1
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/connector.py +4 -0
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/http.py +3 -2
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/models.py +714 -675
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/__init__.py +2 -0
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/basic_authentication_realms.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/borg_archives.py +7 -3
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/borg_repositories.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/certificate_managers.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/certificates.py +7 -3
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/clusters.py +150 -74
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/cmses.py +13 -9
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/crons.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/custom_config_snippets.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/custom_configs.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/customers.py +7 -3
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/daemons.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/database_user_grants.py +7 -3
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/database_users.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/databases.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/domain_routers.py +7 -3
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/firewall_groups.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/firewall_rules.py +7 -3
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/fpm_pools.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/ftp_users.py +9 -5
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/haproxy_listens.py +7 -3
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/haproxy_listens_to_nodes.py +7 -3
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/hosts_entries.py +7 -3
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/htpasswd_files.py +7 -3
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/htpasswd_users.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/login.py +1 -1
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/logs.py +12 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/mail_accounts.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/mail_aliases.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/mail_domains.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/mail_hostnames.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/malwares.py +6 -2
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/mariadb_encryption_keys.py +7 -3
- python3_core_api_client-2.12/src/cyberfusion/CoreApiClient/resources/n8n_instances.py +94 -0
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/node_add_ons.py +7 -3
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/nodes.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/passenger_apps.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/redis_instances.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/regions.py +6 -2
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/root_ssh_keys.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/security_txt_policies.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/ssh_keys.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/unix_users.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/url_redirects.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/virtual_hosts.py +8 -4
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/python3_core_api_client.egg-info/PKG-INFO +7 -7
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/python3_core_api_client.egg-info/SOURCES.txt +1 -0
- python3_core_api_client-2.12/src/python3_core_api_client.egg-info/requires.txt +3 -0
- python3_core_api_client-2.10.1/src/python3_core_api_client.egg-info/requires.txt +0 -3
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/setup.cfg +0 -0
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/__init__.py +0 -0
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/_helpers.py +0 -0
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/exceptions.py +0 -0
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/interfaces.py +0 -0
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/health.py +0 -0
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/cyberfusion/CoreApiClient/resources/task_collections.py +0 -0
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/python3_core_api_client.egg-info/dependency_links.txt +0 -0
- {python3_core_api_client-2.10.1 → python3_core_api_client-2.12}/src/python3_core_api_client.egg-info/top_level.txt +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python3-core-api-client
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.12
|
|
4
4
|
Summary: Python client for Core API.
|
|
5
5
|
Author-email: Cyberfusion <support@cyberfusion.io>
|
|
6
6
|
Project-URL: Source, https://github.com/CyberfusionIO/python3-core-api-client
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
|
-
Requires-Dist: certifi==
|
|
9
|
-
Requires-Dist: requests==2.
|
|
10
|
-
Requires-Dist: pydantic[
|
|
8
|
+
Requires-Dist: certifi==2025.11.12
|
|
9
|
+
Requires-Dist: requests==2.32.5
|
|
10
|
+
Requires-Dist: pydantic[email]==2.12.5
|
|
11
11
|
|
|
12
12
|
# python3-core-api-client
|
|
13
13
|
|
|
14
14
|
Python client for Core API.
|
|
15
15
|
|
|
16
|
-
This client was built for and tested on the **1.
|
|
16
|
+
This client was built for and tested on the **1.263.0** version of the API.
|
|
17
17
|
|
|
18
18
|
## Support
|
|
19
19
|
|
|
@@ -25,7 +25,7 @@ Have questions? Ask your support questions on the [platform](https://platform.cy
|
|
|
25
25
|
|
|
26
26
|
This client can be used in any Python project and with any framework.
|
|
27
27
|
|
|
28
|
-
This client requires Python 3.
|
|
28
|
+
This client requires Python 3.13 or higher.
|
|
29
29
|
|
|
30
30
|
## PyPI
|
|
31
31
|
|
|
@@ -300,7 +300,7 @@ To raise `cyberfusion.CoreApiClient.exceptions.CallException` in case of an unex
|
|
|
300
300
|
|
|
301
301
|
Auto-generate models as follows:
|
|
302
302
|
|
|
303
|
-
datamodel-codegen --input-file-type openapi --url http://127.0.0.1:22190/openapi.json --output temp_models.py --target-python-version 3.
|
|
303
|
+
datamodel-codegen --input-file-type openapi --url http://127.0.0.1:22190/openapi.json --output temp_models.py --target-python-version 3.13 --base-class cyberfusion.CoreApiClient.models.BaseCoreApiModel
|
|
304
304
|
|
|
305
305
|
This adds models to `temp_models.py`. Merge it with `models.py`.
|
|
306
306
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Python client for Core API.
|
|
4
4
|
|
|
5
|
-
This client was built for and tested on the **1.
|
|
5
|
+
This client was built for and tested on the **1.263.0** version of the API.
|
|
6
6
|
|
|
7
7
|
## Support
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ Have questions? Ask your support questions on the [platform](https://platform.cy
|
|
|
14
14
|
|
|
15
15
|
This client can be used in any Python project and with any framework.
|
|
16
16
|
|
|
17
|
-
This client requires Python 3.
|
|
17
|
+
This client requires Python 3.13 or higher.
|
|
18
18
|
|
|
19
19
|
## PyPI
|
|
20
20
|
|
|
@@ -289,7 +289,7 @@ To raise `cyberfusion.CoreApiClient.exceptions.CallException` in case of an unex
|
|
|
289
289
|
|
|
290
290
|
Auto-generate models as follows:
|
|
291
291
|
|
|
292
|
-
datamodel-codegen --input-file-type openapi --url http://127.0.0.1:22190/openapi.json --output temp_models.py --target-python-version 3.
|
|
292
|
+
datamodel-codegen --input-file-type openapi --url http://127.0.0.1:22190/openapi.json --output temp_models.py --target-python-version 3.13 --base-class cyberfusion.CoreApiClient.models.BaseCoreApiModel
|
|
293
293
|
|
|
294
294
|
This adds models to `temp_models.py`. Merge it with `models.py`.
|
|
295
295
|
|
|
@@ -4,16 +4,16 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python3-core-api-client"
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.12"
|
|
8
8
|
description = "Python client for Core API."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
11
11
|
{ name = "Cyberfusion", email = "support@cyberfusion.io" },
|
|
12
12
|
]
|
|
13
13
|
dependencies = [
|
|
14
|
-
"certifi==
|
|
15
|
-
"requests==2.
|
|
16
|
-
"pydantic[email
|
|
14
|
+
"certifi==2025.11.12",
|
|
15
|
+
"requests==2.32.5",
|
|
16
|
+
"pydantic[email]==2.12.5",
|
|
17
17
|
]
|
|
18
18
|
|
|
19
19
|
[project.urls]
|
|
@@ -4,12 +4,14 @@ from ipaddress import IPv4Address, IPv6Address
|
|
|
4
4
|
from typing import Any
|
|
5
5
|
from uuid import UUID
|
|
6
6
|
|
|
7
|
+
from pydantic import AnyUrl
|
|
8
|
+
|
|
7
9
|
|
|
8
10
|
class CustomEncoder(JSONEncoder):
|
|
9
11
|
def default(self, o: Any) -> str:
|
|
10
12
|
if isinstance(o, datetime.date):
|
|
11
13
|
return o.strftime("%Y-%m-%dT%H:%M:%S.%fZ")
|
|
12
|
-
elif isinstance(o, (IPv6Address, IPv4Address, UUID)):
|
|
14
|
+
elif isinstance(o, (IPv6Address, IPv4Address, UUID, AnyUrl)):
|
|
13
15
|
return str(o)
|
|
14
16
|
|
|
15
17
|
return super().default(o)
|
|
@@ -319,6 +319,10 @@ class CoreApiConnector(CoreApiClient):
|
|
|
319
319
|
def redis_instances(self) -> resources.redis_instances.RedisInstances:
|
|
320
320
|
return resources.redis_instances.RedisInstances(self)
|
|
321
321
|
|
|
322
|
+
@cached_property
|
|
323
|
+
def n8n_instances(self) -> resources.n8n_instances.N8nInstances:
|
|
324
|
+
return resources.n8n_instances.N8nInstances(self)
|
|
325
|
+
|
|
322
326
|
@cached_property
|
|
323
327
|
def task_collections(self) -> resources.task_collections.TaskCollections:
|
|
324
328
|
return resources.task_collections.TaskCollections(self)
|
|
@@ -11,6 +11,7 @@ from requests.models import Response as RequestsResponse
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
ModelType = TypeVar("ModelType", bound=CoreApiModel)
|
|
14
|
+
|
|
14
15
|
DtoType = TypeVar("DtoType", CoreApiModel, list[CoreApiModel])
|
|
15
16
|
|
|
16
17
|
|
|
@@ -37,9 +38,9 @@ class DtoResponse(Generic[DtoType], Response):
|
|
|
37
38
|
@classmethod
|
|
38
39
|
def from_response(cls, response: Response, model: type[ModelType]) -> "DtoResponse":
|
|
39
40
|
if isinstance(response.json, list):
|
|
40
|
-
dto = [model.
|
|
41
|
+
dto = [model.model_validate(object_) for object_ in response.json]
|
|
41
42
|
else:
|
|
42
|
-
dto = model.
|
|
43
|
+
dto = model.model_validate(response.json)
|
|
43
44
|
|
|
44
45
|
return cls(
|
|
45
46
|
status_code=response.status_code,
|