Skip to main content

No project description provided

Project description

Scramjet Middleware client

GitHub license Discord

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
from middleware_client.middleware_client import MiddlewareClient
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' 

middleware = MiddlewareClient(api_base)
res = asyncio.run(middleware.get_managers())
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-middleware-client-1.1.0.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

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