gearAPI Config

API reference for sovai.api_config

Module: sovai.api_config

Classes

ApiConfig

class ApiConfig

The main API Configuration

Attributes

  • token (Optional[str])

  • base_url (str)

  • token_type (str)

  • verify_ssl (bool)

  • version (Optional[str])


Functions

read_key()

Read .env file with credentials (e.g TOKEN or API_TOKEN) and store to the ApiConfig

Returns

str


save_key()

Save retrieve token from the server to .env file in the root directory

Returns: None


Last updated