"""Development Server. ================== This server is for development purposes only. It turns on the necessary flags to allow quick reloads (no need to restart the server after making changes), and debug flags. It also provides a development server which launches the application (not suitable for production). """ from argparse import ArgumentParser from dotenv import load_dotenv load_dotenv() from application import app # noqa: E402 (to properly load .env file) if __name__ == '__main__': parser = ArgumentParser() parser.add_argument('-i', '--interface', dest='host', default='127.0.0.1') parser.add_argument('-p', '--port', default=8080, type=int) args = parser.parse_args() app.run(host=args.host, port=args.port, debug=True, use_reloader=True, reloader_type='stat')