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
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)
Release files for scramjet-manager-client 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scramjet-manager-client-1.1.0.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scramjet_manager_client-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.2 kB
Release files / scramjet-manager-client-1.1.0.tar.gz
| Download URL | scramjet-manager-client-1.1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f88662c80122b8b7f51548ae77121aad589500e9c9fad3adf3891360a0170cca
|
|
BLAKE2b-256 checksum How to use checksums |
6508e8377f03ce9983f3d965745d3833424494acb947e3dd3891d7be44e1a1be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / scramjet_manager_client-1.1.0-py3-none-any.whl
| Download URL | scramjet_manager_client-1.1.0-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc8e19e7e3faafaa7f4fe93bca99c2fc74827e3dde3b13355bcd442c53bc195a
|
|
BLAKE2b-256 checksum How to use checksums |
2f9dce205d8eec03c7ebb179086f3b1a2da3f4cd1f3ef2d6cb8017e8389e1cf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|