terrakio-admin-api 0.2.1__tar.gz → 0.2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: terrakio-admin-api
3
- Version: 0.2.1
3
+ Version: 0.2.2
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
@@ -57,9 +57,13 @@ print(f"✓ Login successful, personal token: {token[:10]}...")
57
57
  api_key = admin_client.view_api_key()
58
58
  print(f"✓ Current API key: {api_key[:10]}...")
59
59
 
60
- # Create a new dataset
60
+ # List number of datasets
61
61
  datasets = admin_client.list_datasets()
62
62
  print(f"✓ Listed {len(datasets)} datasets")
63
+
64
+ # List number of users
65
+ users = admin_client.list_users()
66
+ print(f"✓ Listed {len(users)} users")
63
67
  ```
64
68
 
65
69
  For more documentation, see the [main repository](https://github.com/HaizeaAnalytics/terrakio-python-api).
@@ -33,9 +33,13 @@ print(f"✓ Login successful, personal token: {token[:10]}...")
33
33
  api_key = admin_client.view_api_key()
34
34
  print(f"✓ Current API key: {api_key[:10]}...")
35
35
 
36
- # Create a new dataset
36
+ # List number of datasets
37
37
  datasets = admin_client.list_datasets()
38
38
  print(f"✓ Listed {len(datasets)} datasets")
39
+
40
+ # List number of users
41
+ users = admin_client.list_users()
42
+ print(f"✓ Listed {len(users)} users")
39
43
  ```
40
44
 
41
45
  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.2.1"
7
+ version = "0.2.2"
8
8
  authors = [
9
9
  {name = "Yupeng Chao", email = "yupeng@haizea.com.au"},
10
10
  ]
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name="terrakio_admin_api",
5
- version="0.2.1",
5
+ version="0.2.2",
6
6
  author="Yupeng Chao",
7
7
  author_email="yupeng@haizea.com.au",
8
8
  description="Admin API client for Terrakio services",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: terrakio-admin-api
3
- Version: 0.2.1
3
+ Version: 0.2.2
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
@@ -57,9 +57,13 @@ print(f"✓ Login successful, personal token: {token[:10]}...")
57
57
  api_key = admin_client.view_api_key()
58
58
  print(f"✓ Current API key: {api_key[:10]}...")
59
59
 
60
- # Create a new dataset
60
+ # List number of datasets
61
61
  datasets = admin_client.list_datasets()
62
62
  print(f"✓ Listed {len(datasets)} datasets")
63
+
64
+ # List number of users
65
+ users = admin_client.list_users()
66
+ print(f"✓ Listed {len(users)} users")
63
67
  ```
64
68
 
65
69
  For more documentation, see the [main repository](https://github.com/HaizeaAnalytics/terrakio-python-api).