waft.utilities.waft_mailbox module

class waft.utilities.waft_mailbox.WaftMailBox(randomized_email: str | None = None)

Bases: object

Class to interact with WAFT cloudflare org for the purposes of retrieving link to complete WARP client registration

email_address = 'waft@waft.clienttest.cfdata.org'
get_email_kv_value() str

Check for stored value associated with current randomized email address in KV store

property randomized_email: str

Randomized email to avoid ratelimiting from WARP API and specificity per session

wait_for_email(timeout: int = 60, retry: retry_base | None = None) str

Will wait for a new email to arrive addressed to the randomized address of this instance.

Parameters:
  • timeout (int) – Max number of seconds to wait for an email to arrive

  • retry (Optional[retry_base]) – Additional retry predicate to evaluate before returning an email