web_monitoring.db.Client.from_env¶
-
classmethod
Client.from_env(**kwargs)[source]¶ Instantiate a
Clientby obtaining its authentication info from these environment variables:WEB_MONITORING_DB_URL(optional – defaults tohttps://api.monitoring.envirodatagov.org)WEB_MONITORING_DB_EMAILWEB_MONITORING_DB_PASSWORD
Any extra parameters (e.g.
timeout) are passed to theClientconstructor.