Skip to main content

Admin version of the terrakio-python-api

Project description

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, default url is https://api.terrak.io
admin_client = Client(url = "https://dev-au.terrak.io")

# Login to your admin account
token = admin_client.auth.login(email = "XXX", password = "XXX")
print(f"✓ Login successful, personal token: {token[:10]}...")

# 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]}...")

# 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.

Project details


Release history Release notifications | RSS feed

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.5.4.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

terrakio_admin_api-0.5.4-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file terrakio_admin_api-0.5.4.tar.gz.

File metadata

  • Download URL: terrakio_admin_api-0.5.4.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for terrakio_admin_api-0.5.4.tar.gz
Algorithm Hash digest
SHA256 9a60303e7b29c38447c933a24f23ec1b34960de76649b736feb9cb23343f200e
MD5 f725affba1306af23642e233acf06f7a
BLAKE2b-256 754e919cc2e042e2c6814fddec0f8056b734946bd6aac7389466339eb25c8545

See more details on using hashes here.

File details

Details for the file terrakio_admin_api-0.5.4-py3-none-any.whl.

File metadata

File hashes

Hashes for terrakio_admin_api-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 82ec1cc64aa25d4a19056b5fabaec74287e90966f0fd131e854b55ff2eade51e
MD5 fe57c17501203002b93375f84287ef13
BLAKE2b-256 a89a4739949cf95d2c22a3749e1cd878dcf07e5f1240317701f9de272573f593

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page