From 346542e5cddc05892521c1fc7d01223126efc5f5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 29 Dec 2020 17:23:28 +0100 Subject: [PATCH] Remove flask dependency --- freqtrade/rpc/api_server2/api_auth.py | 1 - freqtrade/rpc/api_server2/webserver.py | 3 ++- requirements.txt | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/freqtrade/rpc/api_server2/api_auth.py b/freqtrade/rpc/api_server2/api_auth.py index 00ae60ed2..6f5d051d3 100644 --- a/freqtrade/rpc/api_server2/api_auth.py +++ b/freqtrade/rpc/api_server2/api_auth.py @@ -93,7 +93,6 @@ def token_login(form_data: HTTPBasicCredentials = Depends(HTTPBasic()), raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Incorrect username or password", - headers={"WWW-Authenticate": "Basic"}, ) diff --git a/freqtrade/rpc/api_server2/webserver.py b/freqtrade/rpc/api_server2/webserver.py index c5cc30156..f603ab160 100644 --- a/freqtrade/rpc/api_server2/webserver.py +++ b/freqtrade/rpc/api_server2/webserver.py @@ -101,7 +101,8 @@ class ApiServer(RPCHandler): uvconfig = uvicorn.Config(self.app, port=rest_port, host=rest_ip, - access_log=True if verbosity != 'error' else False) + access_log=True if verbosity != 'error' else False, + ) try: self._server = UvicornServer(uvconfig) self._server.run_in_thread() diff --git a/requirements.txt b/requirements.txt index 4b439079b..779cc3771 100644 --- a/requirements.txt +++ b/requirements.txt @@ -27,11 +27,6 @@ python-rapidjson==1.0 # Notify systemd sdnotify==0.3.2 -# Api server -flask==1.1.2 -flask-jwt-extended==3.25.0 -flask-cors==3.0.9 - # API Server fastapi==0.63.0 uvicorn==0.13.2