Skip to content

connection

Heurist API session

Classes:

HeuristAPIConnection

HeuristAPIConnection(db: str, login: str, password: str)

Session context for a connection to the Heurist server.

Parameters:

  • db

    (str) –

    Heurist database name.

  • login

    (str) –

    Username.

  • password

    (str) –

    User's password.

Raises:

  • e

    If the requests method fails, raise that exception.

  • AuthenticationError

    If the Heurist server returns a bad status code, raise an exception.