web_monitoring.db.Client.from_env

classmethod Client.from_env(**kwargs)[source]

Instantiate a Client by obtaining its authentication info from these environment variables:

  • WEB_MONITORING_DB_URL (optional – defaults to https://api.monitoring.envirodatagov.org)

  • WEB_MONITORING_DB_EMAIL

  • WEB_MONITORING_DB_PASSWORD

Any extra parameters (e.g. timeout) are passed to the Client constructor.