terrakio-admin-api 0.4.98__tar.gz → 0.4.98.1b3__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.

@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: terrakio-admin-api
3
- Version: 0.4.98
3
+ Version: 0.4.98.1b3
4
4
  Summary: Admin version of the terrakio-python-api
5
5
  Requires-Python: >=3.11
6
- Requires-Dist: terrakio-core==0.4.98
6
+ Requires-Dist: terrakio-core==0.4.98b3
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.98"
3
+ version = "0.4.98.1b3"
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.98",
8
+ "terrakio-core==0.4.98b3",
9
9
  ]
10
10
 
11
11
  [build-system]
@@ -9,18 +9,20 @@ __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 AdminGroupManagement
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 = AdminGroupManagement(self)
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 = AdminGroupManagement(self)
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']