terrakio-admin-api 0.4.98.1b14__tar.gz → 0.5.0__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,166 @@
1
+ # Python bytecode cache directories
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # Distribution / packaging
7
+ dist/
8
+ build/
9
+ *.egg-info/
10
+ *.egg
11
+ eggs/
12
+ lib/
13
+ lib64/
14
+ parts/
15
+ sdist/
16
+ var/
17
+ wheels/
18
+ *.dist-info/
19
+
20
+ # UV package manager
21
+ .python-version
22
+ .python-versions
23
+
24
+ # Virtual environments
25
+ venv/
26
+ env/
27
+ ENV/
28
+ .venv/
29
+ .env/
30
+ api_venv/
31
+ *.venv
32
+ virtualenv/
33
+ pipenv/
34
+
35
+ # PyInstaller
36
+ *.manifest
37
+ *.spec
38
+
39
+ # Installer logs
40
+ pip-log.txt
41
+ pip-delete-this-directory.txt
42
+
43
+ # Unit test / coverage reports
44
+ htmlcov/
45
+ .tox/
46
+ .nox/
47
+ .coverage
48
+ .coverage.*
49
+ .cache
50
+ nosetests.xml
51
+ coverage.xml
52
+ *.cover
53
+ *.py,cover
54
+ .hypothesis/
55
+ .pytest_cache/
56
+
57
+ # Jupyter Notebook
58
+ .ipynb_checkpoints
59
+
60
+ # IPython
61
+ profile_default/
62
+ ipython_config.py
63
+
64
+ # pyenv
65
+ .python-version
66
+
67
+ # pipenv
68
+ Pipfile.lock
69
+
70
+ # poetry
71
+ poetry.lock
72
+
73
+ # Celery
74
+ celerybeat-schedule
75
+ celerybeat.pid
76
+
77
+ # SageMath parsed files
78
+ *.sage.py
79
+
80
+ # Environments
81
+ .env
82
+ .env.local
83
+ .env.development.local
84
+ .env.test.local
85
+ .env.production.local
86
+
87
+ # mypy
88
+ .mypy_cache/
89
+ .dmypy.json
90
+ dmypy.json
91
+
92
+ # Pyre type checker
93
+ .pyre/
94
+
95
+ # pytype static type analyzer
96
+ .pytype/
97
+
98
+ # IDE specific files
99
+ .idea/
100
+ .vscode/
101
+ *.swp
102
+ *.swo
103
+ *~
104
+
105
+ # OS specific files
106
+ .DS_Store
107
+ .DS_Store?
108
+ Thumbs.db
109
+ ehthumbs.db
110
+ Desktop.ini
111
+
112
+ # macOS specific files
113
+ .AppleDouble
114
+ .LSOverride
115
+ Icon
116
+ ._*
117
+ .DocumentRevisions-V100
118
+ .fseventsd
119
+ .Spotlight-V100
120
+ .TemporaryItems
121
+ .Trashes
122
+ .VolumeIcon.icns
123
+ .com.apple.timemachine.donotpresent
124
+
125
+ # Windows specific files
126
+ Thumbs.db
127
+ ehthumbs.db
128
+ Desktop.ini
129
+ $RECYCLE.BIN/
130
+ *.cab
131
+ *.msi
132
+ *.msix
133
+ *.msm
134
+ *.msp
135
+ *.lnk
136
+
137
+ # Linux specific files
138
+ *~
139
+ .fuse_hidden*
140
+ .directory
141
+ .Trash-*
142
+ .nfs*
143
+
144
+ # Temporary files
145
+ *.tmp
146
+ *.temp
147
+ *.log
148
+ *.bak
149
+ *.swp
150
+ *.swo
151
+
152
+ # Local configuration files
153
+ .local/
154
+ local_settings.py
155
+ instance/
156
+ .webassets-cache
157
+
158
+ # Database files
159
+ *.db
160
+ *.sqlite3
161
+ *.sqlite
162
+
163
+ # Secrets and sensitive files
164
+ .secrets/
165
+ secrets.json
166
+ .env.secrets
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: terrakio-admin-api
3
- Version: 0.4.98.1b14
3
+ Version: 0.5.0
4
4
  Summary: Admin version of the terrakio-python-api
5
5
  Requires-Python: >=3.11
6
- Requires-Dist: terrakio-core==0.4.98.1b14
6
+ Requires-Dist: terrakio-core==0.5.0
7
7
  Description-Content-Type: text/markdown
8
8
 
9
9
  # Terrakio Admin API Client
@@ -1,11 +1,11 @@
1
1
  [project]
2
2
  name = "terrakio-admin-api"
3
- version = "0.4.98.1b14"
3
+ version = "0.5.0"
4
4
  description = "Admin version of the terrakio-python-api"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
7
7
  dependencies = [
8
- "terrakio-core==0.4.98.1b14",
8
+ "terrakio-core==0.5.0",
9
9
  ]
10
10
 
11
11
  [build-system]
@@ -8,7 +8,7 @@ An admin API client for Terrakio.
8
8
  # Suppress ONNX Runtime GPU device discovery warnings - MUST BE FIRST!
9
9
  import os
10
10
  os.environ['ORT_LOGGING_LEVEL'] = '3'
11
- __version__ = "0.4.98.1"
11
+ __version__ = "0.5.0"
12
12
 
13
13
  from terrakio_core import AsyncClient as CoreAsyncClient
14
14
  from terrakio_core import Client as CoreClient
@@ -1 +0,0 @@
1
- /home/yupeng/Desktop/ml-training-api/terrakio-python-api/terrakio-admin-api/terrakio_admin_api/__init__.py
@@ -1,26 +0,0 @@
1
- # terrakio_admin/__init__.py
2
- """
3
- Terrakio Admin API Client
4
-
5
- An admin API client for Terrakio.
6
- """
7
-
8
- __version__ = "0.4.5"
9
-
10
- from terrakio_core import AsyncClient as CoreAsyncClient
11
- from terrakio_core import Client as CoreClient
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 Client(CoreClient):
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', 'Client']
@@ -1,66 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: terrakio-admin-api
3
- Version: 0.4.6
4
- Summary: Admin API client for Terrakio services
5
- Author-email: Yupeng Chao <yupeng@haizea.com.au>
6
- Project-URL: Homepage, https://github.com/HaizeaAnalytics/terrakio-python-api
7
- Project-URL: Bug Tracker, https://github.com/HaizeaAnalytics/terrakio-python-api/issues
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3.7
10
- Classifier: Programming Language :: Python :: 3.8
11
- Classifier: Programming Language :: Python :: 3.9
12
- Classifier: Programming Language :: Python :: 3.10
13
- Classifier: License :: OSI Approved :: MIT License
14
- Classifier: Operating System :: OS Independent
15
- Classifier: Development Status :: 4 - Beta
16
- Requires-Python: >3.11
17
- Description-Content-Type: text/markdown
18
- Requires-Dist: terrakio-core==0.4.6
19
- Provides-Extra: ml
20
- Requires-Dist: terrakio-core[ml]==0.4.6; extra == "ml"
21
-
22
- # Terrakio Admin API Client
23
-
24
- Administrative API client for Terrakio services. This package extends the regular Terrakio API client with additional administrative capabilities.
25
-
26
- ## Features
27
-
28
- - All features from the regular API client
29
- - User management (create, view, edit, delete users)
30
- - Dataset management (create, edit, update, delete datasets)
31
- - Mass stats functionality (create pyramid)
32
-
33
- ## Installation
34
-
35
- ```bash
36
- pip install terrakio-admin-api
37
- ```
38
-
39
- ## Usage Example
40
-
41
- ```python
42
- from terrakio_admin_api import Client
43
-
44
- # Initialize the admin client, default url is https://api.terrak.io
45
- admin_client = Client(url = "https://dev-au.terrak.io")
46
-
47
- # Login to your admin account
48
- token = admin_client.auth.login(email = "XXX", password = "XXX")
49
- print(f"✓ Login successful, personal token: {token[:10]}...")
50
-
51
- # The login account will automatically be used for the requests
52
-
53
- # View API key
54
- api_key = admin_client.auth.view_api_key()
55
- print(f"✓ Current API key: {api_key[:10]}...")
56
-
57
- # List number of datasets
58
- datasets = admin_client.datasets.list_datasets()
59
- print(f"✓ Listed {len(datasets)} datasets")
60
-
61
- # List number of users
62
- users = admin_client.users.list_users()
63
- print(f"✓ Listed {len(users)} users")
64
- ```
65
-
66
- For more documentation, see the [main repository](https://github.com/HaizeaAnalytics/terrakio-python-api).
@@ -1,8 +0,0 @@
1
- README.md
2
- pyproject.toml
3
- terrakio_admin_api/__init__.py
4
- terrakio_admin_api.egg-info/PKG-INFO
5
- terrakio_admin_api.egg-info/SOURCES.txt
6
- terrakio_admin_api.egg-info/dependency_links.txt
7
- terrakio_admin_api.egg-info/requires.txt
8
- terrakio_admin_api.egg-info/top_level.txt
@@ -1,4 +0,0 @@
1
- terrakio-core==0.4.6
2
-
3
- [ml]
4
- terrakio-core[ml]==0.4.6
@@ -1 +0,0 @@
1
- terrakio_admin_api