-
Notifications
You must be signed in to change notification settings - Fork 1
services
natalia-araujo edited this page Mar 14, 2024
·
4 revisions
Functions to allow users to access 4casthub with PyFaaS through 2-factor-authentication.
function login()
This function must be called before any interaction with the 4casthub environment. It will provide the user with the login steps to use PyFaaS for modelling.
from pyfaas4i.faas import login
login()
By default, the login function will wait 90 seconds for authentication. If you wish to adjust the wait time, it is possible to change the parameter using a numeric value for sleep_time.
function get_device_code()
Performs the login flow to allow a user to utilise the APIs from the 4casthub environment.