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 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.0.tar.gz
.
File metadata
- Download URL: scramjet_manager_client-1.0.0.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 | 19daf0330fafa3084bcf5f5855d92b530e3c79b47c83ecca5d17433217b5553b |
|
MD5 | d6f2b1cd65a6e1c9c072e0f9856f6003 |
|
BLAKE2b-256 | 4f597b83448207ff57404fd8256e9693fcb4dbe43a1a092d2cbe8db59377ef44 |
File details
Details for the file scramjet_manager_client-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: scramjet_manager_client-1.0.0-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 | 48b24ca598885aa16ba3c437cb932f398fd317c1cb0977eec1ff95c84f18edaf |
|
MD5 | c32b300ff6a8a0926867e9e911bcaea6 |
|
BLAKE2b-256 | 47fe0c3d385d694945806b8f0c4dc0455bb9fc859cabf6e3578af29c54279434 |