connection
Heurist API session
Classes:
HeuristAPIConnection
HeuristAPIConnection(
db: str,
login: str,
password: str,
read_timeout: int = READTIMEOUT,
post_timeout: int = 10,
)
Session context for a connection to the Heurist server.
Parameters:
-
db
str
) –Heurist database name.
-
login
str
) –Username.
-
password
str
) –User's password.
-
read_timeout
int
, default:READTIMEOUT
) –Seconds to wait before raising a ReadTimeout.
-
post_timeout
int
, default:10
) –Seconds to wait before raising an error when establishing a login connection.
Raises:
-
e
–If the requests method fails, raise that exception.
-
AuthenticationError
–If the Heurist server returns a bad status code, raise an exception.