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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfc800d32c8669463393432edb2ae815198b25588b0a42bbeef2e9966955c804 |
|
MD5 | df259a8f5440e6b83e251aaa4f046b83 |
|
BLAKE2b-256 | b0b57c0475447eb69c86dd25d66c6184bfda45c27a10378e02522dd16b5b7096 |
Close
Hashes for scramjet_middleware_client-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7001993db974f2a3e7b025177dcf193d96f0eb4fdc542a23c8a533c94459f9cd |
|
MD5 | 0fdee914f79c7aa36942dd5626d26d57 |
|
BLAKE2b-256 | 5d3c37ec921165ffa8f5fccaf49c75b50fa1df9c1db3507891aecb7c1338e2fa |