From ec04ef4929d201c89b34346016fda7d49edaa1a6 Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Fri, 21 Jul 2023 20:28:29 +0200 Subject: [PATCH] chore: Remove unnecessary dependencies --- main.py | 46 ---------------------------------------------- requirements.txt | 5 +---- 2 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 main.py diff --git a/main.py b/main.py deleted file mode 100644 index 0917648..0000000 --- a/main.py +++ /dev/null @@ -1,46 +0,0 @@ -""" -The new 2anki backend API. -""" -import fastapi - -VERSION = "0.0.1" -description: str = """ -The create_deck API helps you create Anki flashcards fast. 🌟 -""" - -tos: str = "https://alemayhu.notion.site/Terms-of-services" \ - "-931865161517453b99fb6495e400061d " - -app = fastapi.FastAPI( - title="create_deck API", - description=description, - version=VERSION, - terms_of_service=tos, - contact={ - "name": "Alexander Alemayhu", - "url": "https://alemayhu.com", - "email": "alexander@alemayhu.com" - }, - license_info={ - "name": "MIT LICENSE", - "url": "https://github.com/2anki/create_deck/blob/main/LICENSE" - } -) - - -@app.get("/") -def read_version(): - """ - Endpoint for reading current version of the API. - :return: version string - """ - return VERSION.encode("utf-8") - - -@app.get("/checks") -def read_checks(): - """ - Endpoint used for performing health checks. - :return: "create_deck" string - """ - return "create_deck" diff --git a/requirements.txt b/requirements.txt index ace9982..a535ad2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,7 @@ # make sure to update the alemayhu/base-image-n2a # and pull it in the live server: ssh root@2anki.net docker pull alemayhu/base-image-n2a genanki==0.13.0 -sentry-sdk==1.28.0 -fastapi>=0.68.0,<0.96.0 pydantic>=1.8.0,<2.0.0 -uvicorn>=0.15.0,<0.23.0 pylint>=2.17.0 -ftfy~=6.1.1 \ No newline at end of file +ftfy~=6.1.1