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:
-
(dbstr) –Heurist database name.
-
(loginstr) –Username.
-
(passwordstr) –User's password.
-
(read_timeoutint, default:READTIMEOUT) –Seconds to wait before raising a ReadTimeout.
-
(post_timeoutint, 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.