


The value of the key or default Return type Parametersĭefault ( Any) – The value to return if the key does not exist Gets a value from the database if it exists, otherwise returns default. User ( username, prefix = '' ) ¶Ī user in the database, usually initialized by UserStore. Utilities for working with user mappings. run ( app, host = '0.0.0.0', port = 8080, ** kwargs ) ¶Ī simple wrapper around app.run() with replit compatible defaults. **kwargs ( Any) – Extra keyword arguments to be passed to the flask app’s run Localhost ( bool) – Whether to run the app without exposing it on all

Port ( int) – The port to run the app on. Watch_files ( List ) – Files to watch, and if changes are detected :param watch_dirs: Directories whose files will be added to debug ( app, watch_dirs = None, watch_files = None, port = 8080, localhost = False, ** kwargs ) ¶ Return typeīool name : str ¶ roles : str ¶ user_id : int ¶. Whether or not the authentication is activated. Headers ( dict) – A dictionary of headers received ReturnsĪn initialized class instance Return typeĬheck whether the user is authenticated in with Replit Auth. Initialize an instance using the Replit identification headers. ReplitAuthContext ( user_id, name, roles ) ¶Ī dataclass defining a Replit Auth state. default ( self, o ) Return typeĪny class. Def default ( self, o ): try : iterable = iter ( o ) except TypeError : pass else : return list ( iterable ) return JSONEncoder.
