terrakio-admin-api 0.4.7__tar.gz → 0.4.93__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.4.93/.gitignore +166 -0
- {terrakio_admin_api-0.4.7 → terrakio_admin_api-0.4.93}/PKG-INFO +5 -18
- terrakio_admin_api-0.4.93/pyproject.toml +19 -0
- {terrakio_admin_api-0.4.7 → terrakio_admin_api-0.4.93}/terrakio_admin_api/__init__.py +1 -1
- terrakio_admin_api-0.4.7/pyproject.toml +0 -35
- terrakio_admin_api-0.4.7/setup.cfg +0 -4
- terrakio_admin_api-0.4.7/terrakio_admin_api.egg-info/PKG-INFO +0 -66
- terrakio_admin_api-0.4.7/terrakio_admin_api.egg-info/SOURCES.txt +0 -8
- terrakio_admin_api-0.4.7/terrakio_admin_api.egg-info/dependency_links.txt +0 -1
- terrakio_admin_api-0.4.7/terrakio_admin_api.egg-info/requires.txt +0 -4
- terrakio_admin_api-0.4.7/terrakio_admin_api.egg-info/top_level.txt +0 -1
- {terrakio_admin_api-0.4.7 → terrakio_admin_api-0.4.93}/README.md +0 -0
|
@@ -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,23 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: terrakio-admin-api
|
|
3
|
-
Version: 0.4.
|
|
4
|
-
Summary: Admin
|
|
5
|
-
|
|
6
|
-
|
|
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
|
|
3
|
+
Version: 0.4.93
|
|
4
|
+
Summary: Admin version of the terrakio-python-api
|
|
5
|
+
Requires-Python: >=3.11
|
|
6
|
+
Requires-Dist: terrakio-core==0.4.93
|
|
17
7
|
Description-Content-Type: text/markdown
|
|
18
|
-
Requires-Dist: terrakio-core==0.4.7
|
|
19
|
-
Provides-Extra: ml
|
|
20
|
-
Requires-Dist: terrakio-core[ml]==0.4.7; extra == "ml"
|
|
21
8
|
|
|
22
9
|
# Terrakio Admin API Client
|
|
23
10
|
|
|
@@ -63,4 +50,4 @@ users = admin_client.users.list_users()
|
|
|
63
50
|
print(f"✓ Listed {len(users)} users")
|
|
64
51
|
```
|
|
65
52
|
|
|
66
|
-
For more documentation, see the [main repository](https://github.com/HaizeaAnalytics/terrakio-python-api).
|
|
53
|
+
For more documentation, see the [main repository](https://github.com/HaizeaAnalytics/terrakio-python-api).
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "terrakio-admin-api"
|
|
3
|
+
version = "0.4.93"
|
|
4
|
+
description = "Admin version of the terrakio-python-api"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.11"
|
|
7
|
+
dependencies = [
|
|
8
|
+
"terrakio-core==0.4.93",
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
[build-system]
|
|
12
|
+
requires = ["hatchling"]
|
|
13
|
+
build-backend = "hatchling.build"
|
|
14
|
+
|
|
15
|
+
[tool.hatch.build.targets.wheel]
|
|
16
|
+
packages = ["terrakio_admin_api"]
|
|
17
|
+
|
|
18
|
+
[tool.uv.sources]
|
|
19
|
+
terrakio-core = { workspace = true }
|
|
@@ -1,35 +0,0 @@
|
|
|
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.4.7"
|
|
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.11"
|
|
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.4.7",
|
|
26
|
-
]
|
|
27
|
-
|
|
28
|
-
[project.optional-dependencies]
|
|
29
|
-
ml = [
|
|
30
|
-
"terrakio-core[ml]==0.4.7",
|
|
31
|
-
]
|
|
32
|
-
|
|
33
|
-
[project.urls]
|
|
34
|
-
"Homepage" = "https://github.com/HaizeaAnalytics/terrakio-python-api"
|
|
35
|
-
"Bug Tracker" = "https://github.com/HaizeaAnalytics/terrakio-python-api/issues"
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: terrakio-admin-api
|
|
3
|
-
Version: 0.4.7
|
|
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.7
|
|
19
|
-
Provides-Extra: ml
|
|
20
|
-
Requires-Dist: terrakio-core[ml]==0.4.7; 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 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
terrakio_admin_api
|
|
File without changes
|