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 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.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for scramjet_manager_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 19daf0330fafa3084bcf5f5855d92b530e3c79b47c83ecca5d17433217b5553b
MD5 d6f2b1cd65a6e1c9c072e0f9856f6003
BLAKE2b-256 4f597b83448207ff57404fd8256e9693fcb4dbe43a1a092d2cbe8db59377ef44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scramjet_manager_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48b24ca598885aa16ba3c437cb932f398fd317c1cb0977eec1ff95c84f18edaf
MD5 c32b300ff6a8a0926867e9e911bcaea6
BLAKE2b-256 47fe0c3d385d694945806b8f0c4dc0455bb9fc859cabf6e3578af29c54279434

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