terrakio-admin-api 0.4.6__py3-none-any.whl → 0.5.11__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.
@@ -5,22 +5,27 @@ Terrakio Admin API Client
5
5
  An admin API client for Terrakio.
6
6
  """
7
7
 
8
- __version__ = "0.4.6"
8
+ # Suppress ONNX Runtime GPU device discovery warnings - MUST BE FIRST!
9
+ import os
10
+ os.environ['ORT_LOGGING_LEVEL'] = '3'
11
+ __version__ = "0.5.11"
9
12
 
10
13
  from terrakio_core import AsyncClient as CoreAsyncClient
11
14
  from terrakio_core import Client as CoreClient
12
- from terrakio_core.endpoints.group_management import AdminGroupManagement
15
+ from terrakio_core.endpoints.group_management import GroupManagement
16
+ from terrakio_core.sync_client import SyncWrapper
13
17
 
14
18
  class AsyncClient(CoreAsyncClient):
15
19
  def __init__(self, *args, **kwargs):
16
20
  super().__init__(*args, **kwargs)
17
- self.groups = AdminGroupManagement(self)
21
+ self.groups = GroupManagement(self)
18
22
 
19
23
  class Client(CoreClient):
20
24
  """Synchronous version of the Terrakio Admin API client with full admin permissions."""
21
25
 
22
26
  def __init__(self, *args, **kwargs):
23
27
  super().__init__(*args, **kwargs)
24
- self.groups = AdminGroupManagement(self)
28
+ self._async_client.groups = GroupManagement(self._async_client)
29
+ self.groups = SyncWrapper(self._async_client.groups, self)
25
30
 
26
31
  __all__ = ['AsyncClient', 'Client']
@@ -1,23 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: terrakio-admin-api
3
- Version: 0.4.6
4
- Summary: Admin API client for Terrakio services
5
- Author-email: Yupeng Chao <yupeng@haizea.com.au>
6
- Project-URL: Homepage, https://github.com/HaizeaAnalytics/terrakio-python-api
7
- Project-URL: Bug Tracker, https://github.com/HaizeaAnalytics/terrakio-python-api/issues
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3.7
10
- Classifier: Programming Language :: Python :: 3.8
11
- Classifier: Programming Language :: Python :: 3.9
12
- Classifier: Programming Language :: Python :: 3.10
13
- Classifier: License :: OSI Approved :: MIT License
14
- Classifier: Operating System :: OS Independent
15
- Classifier: Development Status :: 4 - Beta
16
- Requires-Python: >3.11
3
+ Version: 0.5.11
4
+ Summary: Admin version of the terrakio-python-api
5
+ Requires-Python: >=3.11
6
+ Requires-Dist: terrakio-core==0.5.11
17
7
  Description-Content-Type: text/markdown
18
- Requires-Dist: terrakio-core==0.4.6
19
- Provides-Extra: ml
20
- Requires-Dist: terrakio-core[ml]==0.4.6; extra == "ml"
21
8
 
22
9
  # Terrakio Admin API Client
23
10
 
@@ -63,4 +50,4 @@ users = admin_client.users.list_users()
63
50
  print(f"✓ Listed {len(users)} users")
64
51
  ```
65
52
 
66
- For more documentation, see the [main repository](https://github.com/HaizeaAnalytics/terrakio-python-api).
53
+ For more documentation, see the [main repository](https://github.com/HaizeaAnalytics/terrakio-python-api).
@@ -0,0 +1,4 @@
1
+ terrakio_admin_api/__init__.py,sha256=dLjK4v2WwZJ0pfo6vSaL7xeCR2CZj4fK1LZfH9M8u1s,1011
2
+ terrakio_admin_api-0.5.11.dist-info/METADATA,sha256=DE3-iJzJfqM15fo865xNrpc7rvh6oJW6bBPJREFNARU,1530
3
+ terrakio_admin_api-0.5.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4
+ terrakio_admin_api-0.5.11.dist-info/RECORD,,
@@ -1,5 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
-
@@ -1,5 +0,0 @@
1
- terrakio_admin_api/__init__.py,sha256=93f2PNsX83CvPW7vrLk1CD57Y_nnUmwpP6_yO70vrW4,761
2
- terrakio_admin_api-0.4.6.dist-info/METADATA,sha256=dbk0uLtmKL-BtlRrQd7MZFEhEA5Fx15c84Lt50Xr5a0,2205
3
- terrakio_admin_api-0.4.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
- terrakio_admin_api-0.4.6.dist-info/top_level.txt,sha256=748j-dWRk6ZzvitoF8KKmeRij-jNohN1ESi8ePDz0os,19
5
- terrakio_admin_api-0.4.6.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- terrakio_admin_api