terrakio-admin-api 0.4.97__tar.gz → 0.4.98.1b1__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.
Potentially problematic release.
This version of terrakio-admin-api might be problematic. Click here for more details.
- {terrakio_admin_api-0.4.97 → terrakio_admin_api-0.4.98.1b1}/PKG-INFO +2 -2
- {terrakio_admin_api-0.4.97 → terrakio_admin_api-0.4.98.1b1}/pyproject.toml +2 -2
- {terrakio_admin_api-0.4.97 → terrakio_admin_api-0.4.98.1b1}/terrakio_admin_api/__init__.py +6 -4
- {terrakio_admin_api-0.4.97 → terrakio_admin_api-0.4.98.1b1}/.gitignore +0 -0
- {terrakio_admin_api-0.4.97 → terrakio_admin_api-0.4.98.1b1}/README.md +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: terrakio-admin-api
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.98.1b1
|
|
4
4
|
Summary: Admin version of the terrakio-python-api
|
|
5
5
|
Requires-Python: >=3.11
|
|
6
|
-
Requires-Dist: terrakio-core==0.4.
|
|
6
|
+
Requires-Dist: terrakio-core==0.4.98
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
|
|
9
9
|
# Terrakio Admin API Client
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "terrakio-admin-api"
|
|
3
|
-
version = "0.4.
|
|
3
|
+
version = "0.4.98.1b1"
|
|
4
4
|
description = "Admin version of the terrakio-python-api"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.11"
|
|
7
7
|
dependencies = [
|
|
8
|
-
"terrakio-core==0.4.
|
|
8
|
+
"terrakio-core==0.4.98",
|
|
9
9
|
]
|
|
10
10
|
|
|
11
11
|
[build-system]
|
|
@@ -5,22 +5,24 @@ Terrakio Admin API Client
|
|
|
5
5
|
An admin API client for Terrakio.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
__version__ = "0.4.
|
|
8
|
+
__version__ = "0.4.98"
|
|
9
9
|
|
|
10
10
|
from terrakio_core import AsyncClient as CoreAsyncClient
|
|
11
11
|
from terrakio_core import Client as CoreClient
|
|
12
|
-
from terrakio_core.endpoints.group_management import
|
|
12
|
+
from terrakio_core.endpoints.group_management import GroupManagement
|
|
13
|
+
from terrakio_core.sync_client import SyncWrapper
|
|
13
14
|
|
|
14
15
|
class AsyncClient(CoreAsyncClient):
|
|
15
16
|
def __init__(self, *args, **kwargs):
|
|
16
17
|
super().__init__(*args, **kwargs)
|
|
17
|
-
self.groups =
|
|
18
|
+
self.groups = GroupManagement(self)
|
|
18
19
|
|
|
19
20
|
class Client(CoreClient):
|
|
20
21
|
"""Synchronous version of the Terrakio Admin API client with full admin permissions."""
|
|
21
22
|
|
|
22
23
|
def __init__(self, *args, **kwargs):
|
|
23
24
|
super().__init__(*args, **kwargs)
|
|
24
|
-
self.groups =
|
|
25
|
+
self._async_client.groups = GroupManagement(self._async_client)
|
|
26
|
+
self.groups = SyncWrapper(self._async_client.groups, self)
|
|
25
27
|
|
|
26
28
|
__all__ = ['AsyncClient', 'Client']
|
|
File without changes
|
|
File without changes
|