No project description provided
Project description
Scramjet Manager client
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
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
Built Distribution
File details
Details for the file scramjet_manager_client-1.0.1.tar.gz
.
File metadata
- Download URL: scramjet_manager_client-1.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a28c5115360ddb1ee1a21a4f74d8d20a67d900eabe41fd3e7776fdb39690a71e |
|
MD5 | 6c7625ae43ea1709ee5b0d9cb98779de |
|
BLAKE2b-256 | 1aacba7d7c9cf5a14fe957702a262b749ac67a12aa0bc7e91cb12a120ef528a2 |
File details
Details for the file scramjet_manager_client-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: scramjet_manager_client-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e6662fcd8deabdfdc81a8e36f29c092438aa830e1ee7d0c97123a4ff342c4c9 |
|
MD5 | 0a6383d0a83119a60f5447520cff2067 |
|
BLAKE2b-256 | a7f470f780753851c36b9a301cdde28a482bc000959624dd1922132a9dfd54c7 |