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
import json
from manager_client.manager_client import ManagerClient
from client_utils.client_utils import ClientUtils

# your middleware token
token = ''

# set the token
ClientUtils.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())
# convert response to json
hosts = json.loads(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.0.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

scramjet_manager_client-1.0.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file scramjet_manager_client-1.0.1.tar.gz.

File metadata

File hashes

Hashes for scramjet_manager_client-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a28c5115360ddb1ee1a21a4f74d8d20a67d900eabe41fd3e7776fdb39690a71e
MD5 6c7625ae43ea1709ee5b0d9cb98779de
BLAKE2b-256 1aacba7d7c9cf5a14fe957702a262b749ac67a12aa0bc7e91cb12a120ef528a2

See more details on using hashes here.

File details

Details for the file scramjet_manager_client-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for scramjet_manager_client-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e6662fcd8deabdfdc81a8e36f29c092438aa830e1ee7d0c97123a4ff342c4c9
MD5 0a6383d0a83119a60f5447520cff2067
BLAKE2b-256 a7f470f780753851c36b9a301cdde28a482bc000959624dd1922132a9dfd54c7

See more details on using hashes here.

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