No project description provided
Project description
Scramjet Middleware client
About:
This package provides a Middleware client to let you connect with your Scramjet Cloud Platform account.
Usage:
❗NOTE: You need to provide your middleware access token if you are not hosting STH locally.
import asyncio
import json
from middleware_client.middleware_client import MiddlewareClient
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'
middleware = MiddlewareClient(api_base)
res = asyncio.run(middleware.get_managers())
# convert response to json
managers = 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
Close
Hashes for scramjet_middleware_client-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | baad180d544d0539382f1c0ab6de0f5ba4a1d6b2d3645598f56218ac798e1d4c |
|
MD5 | 8d495a94970ed4b8b0d9f543d72f7b25 |
|
BLAKE2b-256 | 36dc6dc6baa55f5878aa4b06e21c59bfcc1bc48b68d4e99b74acb389e676a03a |
Close
Hashes for scramjet_middleware_client-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35fcd33686a92c00572dc0f3037ee89c659ba00c9fe11151dd8db98ad4bdeac1 |
|
MD5 | ccedded282b995f40f2f37bebdd5afdd |
|
BLAKE2b-256 | 1e49dd780d5e4c9409fdc8b4fe9ecd7ea7a91ab7ccc18b0b9b3d7aefa9b20aa5 |