From af9583ec22e5b3bd1b4a99f86c5de700a79604d3 Mon Sep 17 00:00:00 2001 From: Avani7 Date: Fri, 29 Mar 2024 15:29:02 +0530 Subject: [PATCH] Renamed the tool --- build/lib/craft/__init__.py | 2 -- build/lib/craft/common.py | 39 ------------------------------------- 2 files changed, 41 deletions(-) delete mode 100644 build/lib/craft/__init__.py delete mode 100644 build/lib/craft/common.py diff --git a/build/lib/craft/__init__.py b/build/lib/craft/__init__.py deleted file mode 100644 index 235b881..0000000 --- a/build/lib/craft/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# from .tool import paga_tool, PAGA, signet_tool, transsynw_tool -# from .stages import generate_hypothesis,mechanistic_insights,grn_inference,create_network,functional_analysis,trrust_analysis diff --git a/build/lib/craft/common.py b/build/lib/craft/common.py deleted file mode 100644 index bd1c543..0000000 --- a/build/lib/craft/common.py +++ /dev/null @@ -1,39 +0,0 @@ -"common.py" - -import requests -import sys -import logging -import os -import shutil - -logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) -file_handler = logging.FileHandler('logs.log') -formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') -file_handler.setFormatter(formatter) -logger.addHandler(file_handler) - -# artefacts_path = os.path.abspath(sys.argv[4]) - -def http_request(url, **kwargs): - response = requests.get(url, **kwargs) - if not response.ok: - print(response.text) - response.raise_for_status() - sys.exit() - return response - -def http_post(url, **kwargs): - return requests.post(url, **kwargs) - -def clean_up(path): - try: - shutil.rmtree(path) - logger.debug("Deleted alreday present subdirectory") - except: - logger.debug("No directory found to delete.") - - - - -