Metadata-Version: 2.1
Name: scramjet-multi-manager-client
Version: 0.1.1a1
Summary: 
Author: Scramjet
Author-email: open-source@scramjet.org
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: scramjet-manager-client (>=0.1.1a4,<0.2.0)
Description-Content-Type: text/markdown

<h1 align="center"><strong>Scramjet Multi Manager client</strong></h1>

<p align="center">
    <a href="https://github.com/scramjetorg/transform-hub/blob/HEAD/LICENSE"><img src="https://img.shields.io/github/license/scramjetorg/transform-hub?color=green&style=plastic" alt="GitHub license" /></a>
    <a href="https://scr.je/join-community-mg1"><img alt="Discord" src="https://img.shields.io/discord/925384545342201896?label=discord&style=plastic"></a>
</p>

## About:

This package provides a **Multi manager client** which manages **manager** clients.


## Usage:
> ❗NOTE: You need to provide your middleware [access token](https://docs.scramjet.org/platform/quick-start#step-1-set-up-the-environment) if you are not hosting STH locally.

```python
import asyncio
from multi_manager_client.multi_manager_client import MultiManagerClient

URL = 'https://api.scramjet.cloud/api/v1'
TOKEN = '' # your middleware token
# config is optional
CONFIG = {
    'manager': {
        'id': '<manager-id>'    # manager (hub) id
    }
}

manager = MultiManagerClient(URL, TOKEN)
res = asyncio.run(manager.get_version())
```

