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 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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2930d9a65d4f8b980abfc8ec301c029dd99981a4c4a448e085e767bd6c07197 |
|
MD5 | 4625d0bd7d9f4f86f1fb571b7d01337a |
|
BLAKE2b-256 | f5ccaca450370e54bb026849d08cf86c1111770c2c0f2925706b570ab25c81c1 |
Close
Hashes for scramjet_middleware_client-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d397e7822f75176003fe086bcd3e22fdab28a93422fb0313ce7cbe0923f22479 |
|
MD5 | 88c347f24db53752aa6b64ff79bd3891 |
|
BLAKE2b-256 | 7cccd216a4fb950d9ac9046ba5510dd851567901e5349fd7ba8f2da003c50fb4 |