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.19.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.19-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: terrakio_admin_api-0.5.19.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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

Hashes for terrakio_admin_api-0.5.19.tar.gz
Algorithm Hash digest
SHA256 c0239300cad03fea450dec445e804ecf6cd5e9c7a9c2fe041c6390754e255579
MD5 f2122e6f0a4ba7ed7ddb5b50df97a4c8
BLAKE2b-256 2c482a2e3ad35ccdcb8ddc77010906e4eadd32f92c331f607f6e1b6c4d711081

See more details on using hashes here.

File details

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

File metadata

  • Download URL: terrakio_admin_api-0.5.19-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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

Hashes for terrakio_admin_api-0.5.19-py3-none-any.whl
Algorithm Hash digest
SHA256 593a1fd1dbc2eb0cb54df14ccf1eea82bf620b6b869b4f95d289b6d3d7b2b31a
MD5 3585958a3b70ac92aba7f9d235f291c7
BLAKE2b-256 cdde1b0ea56501c112ebcaee2605d9a19ab79b1153f9f795f2faf62de5e050c2

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