Skip to main content

No project description provided

Project description

Scramjet Manager client

GitHub license Discord

About:

This package provides a Manager client which manages Transform Hub clients.

Usage:

❗NOTE: You need to provide your middleware access token if you are not hosting STH locally.

import asyncio
from manager_client.manager_client import ManagerClient
from client_utils.base_client import BaseClient

# your middleware token
token = ''

# set the token
BaseClient.setDefaultHeaders({'Authorization': f'Bearer {token}'})

# middleware url
api_base ='https://api.scramjet.cloud/api/v1' 

# url = {middlewareURL}/space/{manager_id}/api/v1
manager = ManagerClient(f'{api_base}/space/org-aa5bu150-9o5c-489b-83e3-b1yf7e086f3h-manager/api/v1')

res = asyncio.run(manager.get_hosts())
print(res)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scramjet-manager-client-1.1.0.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

scramjet_manager_client-1.1.0-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

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