terrakio-admin-api 0.3.4__tar.gz → 0.3.6__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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: terrakio-admin-api
3
- Version: 0.3.4
3
+ Version: 0.3.6
4
4
  Summary: Admin API client for Terrakio services
5
5
  Author-email: Yupeng Chao <yupeng@haizea.com.au>
6
6
  Project-URL: Homepage, https://github.com/HaizeaAnalytics/terrakio-python-api
@@ -15,7 +15,7 @@ Classifier: Operating System :: OS Independent
15
15
  Classifier: Development Status :: 4 - Beta
16
16
  Requires-Python: >3.11
17
17
  Description-Content-Type: text/markdown
18
- Requires-Dist: terrakio-core==0.3.4
18
+ Requires-Dist: terrakio-core==0.3.6
19
19
 
20
20
  # Terrakio Admin API Client
21
21
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "terrakio-admin-api"
7
- version = "0.3.4"
7
+ version = "0.3.6"
8
8
  authors = [
9
9
  {name = "Yupeng Chao", email = "yupeng@haizea.com.au"},
10
10
  ]
@@ -22,7 +22,7 @@ classifiers = [
22
22
  "Development Status :: 4 - Beta",
23
23
  ]
24
24
  dependencies = [
25
- "terrakio-core==0.3.4",
25
+ "terrakio-core==0.3.6",
26
26
  ]
27
27
 
28
28
  [project.urls]
@@ -0,0 +1,26 @@
1
+ # terrakio_admin/__init__.py
2
+ """
3
+ Terrakio Admin API Client
4
+
5
+ An admin API client for Terrakio.
6
+ """
7
+
8
+ __version__ = "0.3.4"
9
+
10
+ from terrakio_core import AsyncClient as CoreAsyncClient
11
+ from terrakio_core import SyncClient as CoreSyncClient
12
+ from terrakio_core.endpoints.group_management import AdminGroupManagement
13
+
14
+ class AsyncClient(CoreAsyncClient):
15
+ def __init__(self, *args, **kwargs):
16
+ super().__init__(*args, **kwargs)
17
+ self.groups = AdminGroupManagement(self)
18
+
19
+ class SyncClient(CoreSyncClient):
20
+ """Synchronous version of the Terrakio Admin API client with full admin permissions."""
21
+
22
+ def __init__(self, *args, **kwargs):
23
+ super().__init__(*args, **kwargs)
24
+ self.groups = AdminGroupManagement(self)
25
+
26
+ __all__ = ['AsyncClient', 'SyncClient']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: terrakio-admin-api
3
- Version: 0.3.4
3
+ Version: 0.3.6
4
4
  Summary: Admin API client for Terrakio services
5
5
  Author-email: Yupeng Chao <yupeng@haizea.com.au>
6
6
  Project-URL: Homepage, https://github.com/HaizeaAnalytics/terrakio-python-api
@@ -15,7 +15,7 @@ Classifier: Operating System :: OS Independent
15
15
  Classifier: Development Status :: 4 - Beta
16
16
  Requires-Python: >3.11
17
17
  Description-Content-Type: text/markdown
18
- Requires-Dist: terrakio-core==0.3.4
18
+ Requires-Dist: terrakio-core==0.3.6
19
19
 
20
20
  # Terrakio Admin API Client
21
21
 
@@ -0,0 +1 @@
1
+ terrakio-core==0.3.6
@@ -1,53 +0,0 @@
1
- # terrakio_admin/__init__.py
2
- """
3
- Terrakio Admin API Client
4
-
5
- A Python client for administrators to access Terrakio's administrative API.
6
- """
7
-
8
- __version__ = "0.3.4"
9
-
10
- from terrakio_core.client import BaseClient
11
-
12
- class Client(BaseClient):
13
- def __init__(self, *args, **kwargs):
14
- super().__init__(*args, **kwargs)
15
- self._is_admin = True
16
-
17
- def get_user_by_id(self, user_id: str):
18
- return self._get_user_by_id(user_id)
19
-
20
- def get_user_by_email(self, email: str):
21
- return self._get_user_by_email(email)
22
-
23
- def list_users(self, substring: str = None, uid: bool = False):
24
- return self._list_users(substring, uid)
25
-
26
- def edit_user(self, user_id: str, uid: str = None, email: str = None, role: str = None, apiKey: str = None, groups: list = None, quota: int = None):
27
- return self._edit_user(user_id, uid, email, role, apiKey, groups, quota)
28
-
29
- def reset_quota(self, email: str, quota: int = None):
30
- return self._reset_quota(email, quota)
31
-
32
- def delete_user(self, uid: str):
33
- return self._delete_user(uid)
34
-
35
- def get_dataset(self, name: str, collection: str = "terrakio-datasets"):
36
- return self._get_dataset(name, collection)
37
-
38
- def list_datasets(self, substring: str = None, collection: str = "terrakio-datasets"):
39
- return self._list_datasets(substring, collection)
40
-
41
- def create_dataset(self, name: str, collection: str = "terrakio-datasets", **kwargs):
42
- return self._create_dataset(name, collection, **kwargs)
43
-
44
- def update_dataset(self, name: str, append: bool = True, collection: str = "terrakio-datasets", **kwargs):
45
- return self._update_dataset(name, append, collection, **kwargs)
46
-
47
- def overwrite_dataset(self, name: str, collection: str = "terrakio-datasets", **kwargs):
48
- return self._overwrite_dataset(name, collection, **kwargs)
49
-
50
- def delete_dataset(self, name: str, collection: str = "terrakio-datasets"):
51
- return self._delete_dataset(name, collection)
52
-
53
- __all__ = ['Client']
@@ -1 +0,0 @@
1
- terrakio-core==0.3.4