terrakio-admin-api 0.1.9__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.

@@ -0,0 +1,59 @@
1
+ Metadata-Version: 2.4
2
+ Name: terrakio-admin-api
3
+ Version: 0.1.9
4
+ Summary: Admin API client for Terrakio services
5
+ Home-page: https://github.com/HaizeaAnalytics/terrakio-python-api
6
+ Author: Yupeng Chao
7
+ Author-email: Yupeng Chao <yupeng@haizea.com.au>
8
+ Project-URL: Homepage, https://github.com/HaizeaAnalytics/terrakio-python-api
9
+ Project-URL: Bug Tracker, https://github.com/HaizeaAnalytics/terrakio-python-api/issues
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.7
12
+ Classifier: Programming Language :: Python :: 3.8
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Development Status :: 4 - Beta
18
+ Requires-Python: >=3.7
19
+ Description-Content-Type: text/markdown
20
+ Requires-Dist: terrakio-core>=0.1.9
21
+ Dynamic: author
22
+ Dynamic: home-page
23
+ Dynamic: requires-python
24
+
25
+ # Terrakio Admin API Client
26
+
27
+ Administrative API client for Terrakio services. This package extends the regular Terrakio API client with additional administrative capabilities.
28
+
29
+ ## Features
30
+
31
+ - All features from the regular API client
32
+ - User management (create, view, edit, delete users)
33
+ - Dataset management (create, edit, update, delete datasets)
34
+
35
+ ## Installation
36
+
37
+ ```bash
38
+ pip install terrakio-admin-api
39
+ ```
40
+
41
+ ## Usage Example
42
+
43
+ ```python
44
+ from terrakio_admin_api import Client
45
+
46
+ # Initialize the admin client
47
+ admin = Client(url="https://api.terrak.io", key="your-admin-api-key")
48
+
49
+ # List all users
50
+ users = admin.list_users()
51
+
52
+ # Create a new dataset
53
+ admin.create_dataset("new_dataset", bucket="my-bucket")
54
+
55
+ # List available datasets
56
+ datasets = admin.list_datasets()
57
+ ```
58
+
59
+ For more documentation, see the [main repository](https://github.com/HaizeaAnalytics/terrakio-python-api).
@@ -0,0 +1,35 @@
1
+ # Terrakio Admin API Client
2
+
3
+ Administrative API client for Terrakio services. This package extends the regular Terrakio API client with additional administrative capabilities.
4
+
5
+ ## Features
6
+
7
+ - All features from the regular API client
8
+ - User management (create, view, edit, delete users)
9
+ - Dataset management (create, edit, update, delete datasets)
10
+
11
+ ## Installation
12
+
13
+ ```bash
14
+ pip install terrakio-admin-api
15
+ ```
16
+
17
+ ## Usage Example
18
+
19
+ ```python
20
+ from terrakio_admin_api import Client
21
+
22
+ # Initialize the admin client
23
+ admin = Client(url="https://api.terrak.io", key="your-admin-api-key")
24
+
25
+ # List all users
26
+ users = admin.list_users()
27
+
28
+ # Create a new dataset
29
+ admin.create_dataset("new_dataset", bucket="my-bucket")
30
+
31
+ # List available datasets
32
+ datasets = admin.list_datasets()
33
+ ```
34
+
35
+ For more documentation, see the [main repository](https://github.com/HaizeaAnalytics/terrakio-python-api).
@@ -0,0 +1,30 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "terrakio-admin-api"
7
+ version = "0.1.9"
8
+ authors = [
9
+ {name = "Yupeng Chao", email = "yupeng@haizea.com.au"},
10
+ ]
11
+ description = "Admin API client for Terrakio services"
12
+ readme = "README.md"
13
+ requires-python = ">=3.7"
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3.7",
17
+ "Programming Language :: Python :: 3.8",
18
+ "Programming Language :: Python :: 3.9",
19
+ "Programming Language :: Python :: 3.10",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Operating System :: OS Independent",
22
+ "Development Status :: 4 - Beta",
23
+ ]
24
+ dependencies = [
25
+ "terrakio-core>=0.1.9",
26
+ ]
27
+
28
+ [project.urls]
29
+ "Homepage" = "https://github.com/HaizeaAnalytics/terrakio-python-api"
30
+ "Bug Tracker" = "https://github.com/HaizeaAnalytics/terrakio-python-api/issues"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,26 @@
1
+ from setuptools import setup
2
+
3
+ setup(
4
+ name="terrakio_admin_api",
5
+ version="0.1.9",
6
+ author="Yupeng Chao",
7
+ author_email="yupeng@haizea.com.au",
8
+ description="Admin API client for Terrakio services",
9
+ url="https://github.com/HaizeaAnalytics/terrakio-python-api",
10
+ packages=["terrakio_admin_api"],
11
+ classifiers=[
12
+ "Programming Language :: Python :: 3",
13
+ "Programming Language :: Python :: 3.7",
14
+ "Programming Language :: Python :: 3.8",
15
+ "Programming Language :: Python :: 3.9",
16
+ "Programming Language :: Python :: 3.10",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Operating System :: OS Independent",
19
+ "Development Status :: 4 - Beta",
20
+ ],
21
+ python_requires=">=3.7",
22
+ install_requires=[
23
+ "terrakio-core>=0.1.9",
24
+ ],
25
+ metadata_version='2.2'
26
+ )
@@ -0,0 +1,53 @@
1
+ """
2
+ Terrakio Admin API Client
3
+
4
+ A Python client for administrators to access Terrakio's administrative API.
5
+ """
6
+
7
+ __version__ = "0.1.0"
8
+
9
+ from terrakio_core.client import BaseClient
10
+
11
+ class Client(BaseClient):
12
+ # Expose admin methods as public
13
+ def get_user_by_id(self, user_id: str):
14
+ return self._get_user_by_id(user_id)
15
+
16
+ def get_user_by_email(self, email: str):
17
+ return self._get_user_by_email(email)
18
+
19
+ def list_users(self, substring: str = None, uid: bool = False):
20
+ return self._list_users(substring, uid)
21
+
22
+ 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):
23
+ return self._edit_user(user_id, uid, email, role, apiKey, groups, quota)
24
+
25
+ def reset_quota(self, email: str, quota: int = None):
26
+ return self._reset_quota(email, quota)
27
+
28
+ def delete_user(self, uid: str):
29
+ return self._delete_user(uid)
30
+
31
+ # Expose dataset management methods as public
32
+ def get_dataset(self, name: str, collection: str = "terrakio-datasets"):
33
+ return self._get_dataset(name, collection)
34
+
35
+ def list_datasets(self, substring: str = None, collection: str = "terrakio-datasets"):
36
+ return self._list_datasets(substring, collection)
37
+
38
+ def create_dataset(self, name: str, collection: str = "terrakio-datasets", **kwargs):
39
+ return self._create_dataset(name, collection, **kwargs)
40
+
41
+ def update_dataset(self, name: str, append: bool = True, collection: str = "terrakio-datasets", **kwargs):
42
+ return self._update_dataset(name, append, collection, **kwargs)
43
+
44
+ def overwrite_dataset(self, name: str, collection: str = "terrakio-datasets", **kwargs):
45
+ return self._overwrite_dataset(name, collection, **kwargs)
46
+
47
+ def delete_dataset(self, name: str, collection: str = "terrakio-datasets"):
48
+ return self._delete_dataset(name, collection)
49
+
50
+ __all__ = [
51
+ 'Client'
52
+ ]
53
+
@@ -0,0 +1,2 @@
1
+ # This file is intentionally left empty.
2
+ # The AdminClient class is now exposed via terrakio_admin_api/__init__.py, which imports from terrakio_core.client.
@@ -0,0 +1,59 @@
1
+ Metadata-Version: 2.4
2
+ Name: terrakio-admin-api
3
+ Version: 0.1.9
4
+ Summary: Admin API client for Terrakio services
5
+ Home-page: https://github.com/HaizeaAnalytics/terrakio-python-api
6
+ Author: Yupeng Chao
7
+ Author-email: Yupeng Chao <yupeng@haizea.com.au>
8
+ Project-URL: Homepage, https://github.com/HaizeaAnalytics/terrakio-python-api
9
+ Project-URL: Bug Tracker, https://github.com/HaizeaAnalytics/terrakio-python-api/issues
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.7
12
+ Classifier: Programming Language :: Python :: 3.8
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Development Status :: 4 - Beta
18
+ Requires-Python: >=3.7
19
+ Description-Content-Type: text/markdown
20
+ Requires-Dist: terrakio-core>=0.1.9
21
+ Dynamic: author
22
+ Dynamic: home-page
23
+ Dynamic: requires-python
24
+
25
+ # Terrakio Admin API Client
26
+
27
+ Administrative API client for Terrakio services. This package extends the regular Terrakio API client with additional administrative capabilities.
28
+
29
+ ## Features
30
+
31
+ - All features from the regular API client
32
+ - User management (create, view, edit, delete users)
33
+ - Dataset management (create, edit, update, delete datasets)
34
+
35
+ ## Installation
36
+
37
+ ```bash
38
+ pip install terrakio-admin-api
39
+ ```
40
+
41
+ ## Usage Example
42
+
43
+ ```python
44
+ from terrakio_admin_api import Client
45
+
46
+ # Initialize the admin client
47
+ admin = Client(url="https://api.terrak.io", key="your-admin-api-key")
48
+
49
+ # List all users
50
+ users = admin.list_users()
51
+
52
+ # Create a new dataset
53
+ admin.create_dataset("new_dataset", bucket="my-bucket")
54
+
55
+ # List available datasets
56
+ datasets = admin.list_datasets()
57
+ ```
58
+
59
+ For more documentation, see the [main repository](https://github.com/HaizeaAnalytics/terrakio-python-api).
@@ -0,0 +1,10 @@
1
+ README.md
2
+ pyproject.toml
3
+ setup.py
4
+ terrakio_admin_api/__init__.py
5
+ terrakio_admin_api/client.py
6
+ terrakio_admin_api.egg-info/PKG-INFO
7
+ terrakio_admin_api.egg-info/SOURCES.txt
8
+ terrakio_admin_api.egg-info/dependency_links.txt
9
+ terrakio_admin_api.egg-info/requires.txt
10
+ terrakio_admin_api.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ terrakio-core>=0.1.9
@@ -0,0 +1 @@
1
+ terrakio_admin_api