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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file scramjet-manager-client-1.1.0.tar.gz.

File metadata

File hashes

Hashes for scramjet-manager-client-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f88662c80122b8b7f51548ae77121aad589500e9c9fad3adf3891360a0170cca
MD5 47adf9a355b53038292a78fe6a11badb
BLAKE2b-256 6508e8377f03ce9983f3d965745d3833424494acb947e3dd3891d7be44e1a1be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scramjet_manager_client-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc8e19e7e3faafaa7f4fe93bca99c2fc74827e3dde3b13355bcd442c53bc195a
MD5 669515529cd1d9a1a09ae34a79a6ea56
BLAKE2b-256 2f9dce205d8eec03c7ebb179086f3b1a2da3f4cd1f3ef2d6cb8017e8389e1cf2

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