terrakio-admin-api 0.1.9__tar.gz → 0.2.1__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.1.9 → terrakio_admin_api-0.2.1}/PKG-INFO +16 -10
- terrakio_admin_api-0.2.1/README.md +41 -0
- {terrakio_admin_api-0.1.9 → terrakio_admin_api-0.2.1}/pyproject.toml +2 -2
- {terrakio_admin_api-0.1.9 → terrakio_admin_api-0.2.1}/setup.py +2 -2
- {terrakio_admin_api-0.1.9 → terrakio_admin_api-0.2.1}/terrakio_admin_api.egg-info/PKG-INFO +16 -10
- {terrakio_admin_api-0.1.9 → terrakio_admin_api-0.2.1}/terrakio_admin_api.egg-info/SOURCES.txt +0 -1
- terrakio_admin_api-0.2.1/terrakio_admin_api.egg-info/requires.txt +1 -0
- terrakio_admin_api-0.1.9/README.md +0 -35
- terrakio_admin_api-0.1.9/terrakio_admin_api/client.py +0 -2
- terrakio_admin_api-0.1.9/terrakio_admin_api.egg-info/requires.txt +0 -1
- {terrakio_admin_api-0.1.9 → terrakio_admin_api-0.2.1}/setup.cfg +0 -0
- {terrakio_admin_api-0.1.9 → terrakio_admin_api-0.2.1}/terrakio_admin_api/__init__.py +0 -0
- {terrakio_admin_api-0.1.9 → terrakio_admin_api-0.2.1}/terrakio_admin_api.egg-info/dependency_links.txt +0 -0
- {terrakio_admin_api-0.1.9 → terrakio_admin_api-0.2.1}/terrakio_admin_api.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: terrakio-admin-api
|
|
3
|
-
Version: 0.1
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Admin API client for Terrakio services
|
|
5
5
|
Home-page: https://github.com/HaizeaAnalytics/terrakio-python-api
|
|
6
6
|
Author: Yupeng Chao
|
|
@@ -17,7 +17,7 @@ Classifier: Operating System :: OS Independent
|
|
|
17
17
|
Classifier: Development Status :: 4 - Beta
|
|
18
18
|
Requires-Python: >=3.7
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
|
-
Requires-Dist: terrakio-core>=0.1.
|
|
20
|
+
Requires-Dist: terrakio-core>=0.1.0
|
|
21
21
|
Dynamic: author
|
|
22
22
|
Dynamic: home-page
|
|
23
23
|
Dynamic: requires-python
|
|
@@ -31,6 +31,7 @@ Administrative API client for Terrakio services. This package extends the regula
|
|
|
31
31
|
- All features from the regular API client
|
|
32
32
|
- User management (create, view, edit, delete users)
|
|
33
33
|
- Dataset management (create, edit, update, delete datasets)
|
|
34
|
+
- Mass stats functionality (create pyramid)
|
|
34
35
|
|
|
35
36
|
## Installation
|
|
36
37
|
|
|
@@ -43,17 +44,22 @@ pip install terrakio-admin-api
|
|
|
43
44
|
```python
|
|
44
45
|
from terrakio_admin_api import Client
|
|
45
46
|
|
|
46
|
-
# Initialize the admin client
|
|
47
|
-
|
|
47
|
+
# Initialize the admin client, default url is https://api.terrak.io
|
|
48
|
+
admin_client = Client()
|
|
48
49
|
|
|
49
|
-
#
|
|
50
|
-
|
|
50
|
+
# Login to your admin account
|
|
51
|
+
token = admin_client.login(email = "XXX", password = "XXX")
|
|
52
|
+
print(f"✓ Login successful, personal token: {token[:10]}...")
|
|
51
53
|
|
|
52
|
-
#
|
|
53
|
-
|
|
54
|
+
# The login account will automatically be used for the requests
|
|
55
|
+
|
|
56
|
+
# View API key
|
|
57
|
+
api_key = admin_client.view_api_key()
|
|
58
|
+
print(f"✓ Current API key: {api_key[:10]}...")
|
|
54
59
|
|
|
55
|
-
#
|
|
56
|
-
datasets =
|
|
60
|
+
# Create a new dataset
|
|
61
|
+
datasets = admin_client.list_datasets()
|
|
62
|
+
print(f"✓ Listed {len(datasets)} datasets")
|
|
57
63
|
```
|
|
58
64
|
|
|
59
65
|
For more documentation, see the [main repository](https://github.com/HaizeaAnalytics/terrakio-python-api).
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
- Mass stats functionality (create pyramid)
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
pip install terrakio-admin-api
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage Example
|
|
19
|
+
|
|
20
|
+
```python
|
|
21
|
+
from terrakio_admin_api import Client
|
|
22
|
+
|
|
23
|
+
# Initialize the admin client, default url is https://api.terrak.io
|
|
24
|
+
admin_client = Client()
|
|
25
|
+
|
|
26
|
+
# Login to your admin account
|
|
27
|
+
token = admin_client.login(email = "XXX", password = "XXX")
|
|
28
|
+
print(f"✓ Login successful, personal token: {token[:10]}...")
|
|
29
|
+
|
|
30
|
+
# The login account will automatically be used for the requests
|
|
31
|
+
|
|
32
|
+
# View API key
|
|
33
|
+
api_key = admin_client.view_api_key()
|
|
34
|
+
print(f"✓ Current API key: {api_key[:10]}...")
|
|
35
|
+
|
|
36
|
+
# Create a new dataset
|
|
37
|
+
datasets = admin_client.list_datasets()
|
|
38
|
+
print(f"✓ Listed {len(datasets)} datasets")
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
For more documentation, see the [main repository](https://github.com/HaizeaAnalytics/terrakio-python-api).
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "terrakio-admin-api"
|
|
7
|
-
version = "0.1
|
|
7
|
+
version = "0.2.1"
|
|
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.1.
|
|
25
|
+
"terrakio-core>=0.1.0",
|
|
26
26
|
]
|
|
27
27
|
|
|
28
28
|
[project.urls]
|
|
@@ -2,7 +2,7 @@ from setuptools import setup
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="terrakio_admin_api",
|
|
5
|
-
version="0.1
|
|
5
|
+
version="0.2.1",
|
|
6
6
|
author="Yupeng Chao",
|
|
7
7
|
author_email="yupeng@haizea.com.au",
|
|
8
8
|
description="Admin API client for Terrakio services",
|
|
@@ -20,7 +20,7 @@ setup(
|
|
|
20
20
|
],
|
|
21
21
|
python_requires=">=3.7",
|
|
22
22
|
install_requires=[
|
|
23
|
-
"terrakio-core>=0.1.
|
|
23
|
+
"terrakio-core>=0.1.0",
|
|
24
24
|
],
|
|
25
25
|
metadata_version='2.2'
|
|
26
26
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: terrakio-admin-api
|
|
3
|
-
Version: 0.1
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Admin API client for Terrakio services
|
|
5
5
|
Home-page: https://github.com/HaizeaAnalytics/terrakio-python-api
|
|
6
6
|
Author: Yupeng Chao
|
|
@@ -17,7 +17,7 @@ Classifier: Operating System :: OS Independent
|
|
|
17
17
|
Classifier: Development Status :: 4 - Beta
|
|
18
18
|
Requires-Python: >=3.7
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
|
-
Requires-Dist: terrakio-core>=0.1.
|
|
20
|
+
Requires-Dist: terrakio-core>=0.1.0
|
|
21
21
|
Dynamic: author
|
|
22
22
|
Dynamic: home-page
|
|
23
23
|
Dynamic: requires-python
|
|
@@ -31,6 +31,7 @@ Administrative API client for Terrakio services. This package extends the regula
|
|
|
31
31
|
- All features from the regular API client
|
|
32
32
|
- User management (create, view, edit, delete users)
|
|
33
33
|
- Dataset management (create, edit, update, delete datasets)
|
|
34
|
+
- Mass stats functionality (create pyramid)
|
|
34
35
|
|
|
35
36
|
## Installation
|
|
36
37
|
|
|
@@ -43,17 +44,22 @@ pip install terrakio-admin-api
|
|
|
43
44
|
```python
|
|
44
45
|
from terrakio_admin_api import Client
|
|
45
46
|
|
|
46
|
-
# Initialize the admin client
|
|
47
|
-
|
|
47
|
+
# Initialize the admin client, default url is https://api.terrak.io
|
|
48
|
+
admin_client = Client()
|
|
48
49
|
|
|
49
|
-
#
|
|
50
|
-
|
|
50
|
+
# Login to your admin account
|
|
51
|
+
token = admin_client.login(email = "XXX", password = "XXX")
|
|
52
|
+
print(f"✓ Login successful, personal token: {token[:10]}...")
|
|
51
53
|
|
|
52
|
-
#
|
|
53
|
-
|
|
54
|
+
# The login account will automatically be used for the requests
|
|
55
|
+
|
|
56
|
+
# View API key
|
|
57
|
+
api_key = admin_client.view_api_key()
|
|
58
|
+
print(f"✓ Current API key: {api_key[:10]}...")
|
|
54
59
|
|
|
55
|
-
#
|
|
56
|
-
datasets =
|
|
60
|
+
# Create a new dataset
|
|
61
|
+
datasets = admin_client.list_datasets()
|
|
62
|
+
print(f"✓ Listed {len(datasets)} datasets")
|
|
57
63
|
```
|
|
58
64
|
|
|
59
65
|
For more documentation, see the [main repository](https://github.com/HaizeaAnalytics/terrakio-python-api).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
terrakio-core>=0.1.0
|
|
@@ -1,35 +0,0 @@
|
|
|
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).
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
terrakio-core>=0.1.9
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{terrakio_admin_api-0.1.9 → terrakio_admin_api-0.2.1}/terrakio_admin_api.egg-info/top_level.txt
RENAMED
|
File without changes
|