terrakio-admin-api 0.2.0__py3-none-any.whl → 0.2.1__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.
Potentially problematic release.
This version of terrakio-admin-api might be problematic. Click here for more details.
- {terrakio_admin_api-0.2.0.dist-info → terrakio_admin_api-0.2.1.dist-info}/METADATA +15 -9
- terrakio_admin_api-0.2.1.dist-info/RECORD +5 -0
- terrakio_admin_api/client.py +0 -2
- terrakio_admin_api-0.2.0.dist-info/RECORD +0 -6
- {terrakio_admin_api-0.2.0.dist-info → terrakio_admin_api-0.2.1.dist-info}/WHEEL +0 -0
- {terrakio_admin_api-0.2.0.dist-info → terrakio_admin_api-0.2.1.dist-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.2.
|
|
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
|
|
@@ -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,5 @@
|
|
|
1
|
+
terrakio_admin_api/__init__.py,sha256=1fHirGmEFfLi19GEowKqYVF4Sh9oXqQ_1XxGUH5zxA0,1978
|
|
2
|
+
terrakio_admin_api-0.2.1.dist-info/METADATA,sha256=z5RaTeuU-24r21-mUqyD9MNmDRj3valsLoRoNLiaN-o,2119
|
|
3
|
+
terrakio_admin_api-0.2.1.dist-info/WHEEL,sha256=QZxptf4Y1BKFRCEDxD4h2V0mBFQOVFLFEpvxHmIs52A,91
|
|
4
|
+
terrakio_admin_api-0.2.1.dist-info/top_level.txt,sha256=748j-dWRk6ZzvitoF8KKmeRij-jNohN1ESi8ePDz0os,19
|
|
5
|
+
terrakio_admin_api-0.2.1.dist-info/RECORD,,
|
terrakio_admin_api/client.py
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
terrakio_admin_api/__init__.py,sha256=1fHirGmEFfLi19GEowKqYVF4Sh9oXqQ_1XxGUH5zxA0,1978
|
|
2
|
-
terrakio_admin_api/client.py,sha256=3MJyQguAqv_Yiz_XM3o_tXlMOW8p1OVmxfBt3tMC3Rs,157
|
|
3
|
-
terrakio_admin_api-0.2.0.dist-info/METADATA,sha256=SmNUfT6vSdvVrwBBrOj_eatIcFH4cmR_G6nyn06wjuQ,1835
|
|
4
|
-
terrakio_admin_api-0.2.0.dist-info/WHEEL,sha256=QZxptf4Y1BKFRCEDxD4h2V0mBFQOVFLFEpvxHmIs52A,91
|
|
5
|
-
terrakio_admin_api-0.2.0.dist-info/top_level.txt,sha256=748j-dWRk6ZzvitoF8KKmeRij-jNohN1ESi8ePDz0os,19
|
|
6
|
-
terrakio_admin_api-0.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|