treeschema.auth

class TreeSchemaAuth

Bases: object

Creates a singleton for the Tree Schema auth object. This allows the auth credentails to be passed in one time and to allow multiple clients to reuse the credentials without having the context of the username and secret.

get_encoded_secret(username: str, secret_key: str) → str

Encodes a username and secret key to be compatible with the Tree Schema rest API

Parameters
  • username – The Tree Schema username, this is also the email used to register for Tree Schema

  • secret_key – Your Tree Schema API secret key