From 55478764854eee7c0075597a3433a90489733e55 Mon Sep 17 00:00:00 2001 From: DefinatlyNotAI Date: Mon, 1 Jul 2024 09:18:39 +0300 Subject: [PATCH] Sample for v1.1.0 for Online API usage - Finalising and bug removal --- API_FrameWork.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 API_FrameWork.py diff --git a/API_FrameWork.py b/API_FrameWork.py deleted file mode 100644 index 5f1faa2..0000000 --- a/API_FrameWork.py +++ /dev/null @@ -1,17 +0,0 @@ -import requests - -url = 'http://127.0.0.1:5000/api/upload' - -with open('Database.config', 'rb') as config_file, \ - open('API.json', 'rb') as api_file, \ - open('Test.csv', 'rb') as csv_file: - files = { - 'Database.config': config_file, - 'API.json': api_file, - 'Test.csv': csv_file # Optional - } - -response = requests.post(url, files=files) - -print(response.status_code) -print(response.text)