Terrakio Admin API Client
Administrative API client for Terrakio services. This package extends the regular Terrakio API client with additional administrative capabilities.
Features
- All features from the regular API client
- User management (create, view, edit, delete users)
- Dataset management (create, edit, update, delete datasets)
- Mass stats functionality (create pyramid)
Installation
pip install terrakio-admin-api
Usage Example
from terrakio_admin_api import Client
# Initialize the admin client
admin_client = Client() # defaults to https://dev-omni.terrak.io (fronts all regions)
# Login to your admin account
admin_client.auth.login(email = "XXX", password = "XXX")
print("✓ Login successful")
# The login account will automatically be used for the requests
# View API key
api_key = admin_client.auth.view_api_key()
print(f"✓ Current API key: {api_key[:10]}...")
# Create an extra API key (the full key is returned only here, so store it now)
new_key = admin_client.keys.create_key(label="my laptop")
print(f"✓ New API key: {new_key['key']}")
# List keys (metadata only) and revoke one; pass uid=... to manage another account
for key in admin_client.keys.list_keys():
print(key["id"], key["prefix"], key["label"])
admin_client.keys.revoke_key(key_id=new_key["id"])
# To rotate a key: create a new one, switch your code over to it, then revoke the old one.
# List number of datasets
datasets = admin_client.datasets.list_datasets()
print(f"✓ Listed {len(datasets)} datasets")
# List number of users
users = admin_client.users.list_users()
print(f"✓ Listed {len(users)} users")
For more documentation, see the main repository.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
terrakio_admin_api-0.8.0.tar.gz
(12.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file terrakio_admin_api-0.8.0.tar.gz.
File metadata
- Download URL: terrakio_admin_api-0.8.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d52e7190d08bb621f460e10804714410dc7878c1bdeb05931f1ec6a33c230dc
|
|
| MD5 |
50cfbe1eadf17982d9d87e24e0aab140
|
|
| BLAKE2b-256 |
983e19c7817f03b1bf99b9b8d96bff25a84f201721cffa043f01d3e696342cd8
|
File details
Details for the file terrakio_admin_api-0.8.0-py3-none-any.whl.
File metadata
- Download URL: terrakio_admin_api-0.8.0-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d873e59f142c4f63efb05a3f015a212f183588d1bc280d2cbf10eeb60277d81c
|
|
| MD5 |
17ef77da326bda3d1546c6a8b90fe721
|
|
| BLAKE2b-256 |
efe3f3aedf7910073c21e14740c9c11df6af69e96a29919c214720d78b53c78a
|