diff --git a/requirements.txt b/requirements.txt index 2636faf0..0ce28a21 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,3 @@ -click==8.1.3 -climage==0.1.3 humanfriendly==10.0 opencv_python==4.8.0.74 Pillow==10.3.0 @@ -7,6 +5,5 @@ pillow_avif_plugin==1.3.1 PySide6==6.5.1.1 PySide6_Addons==6.5.1.1 PySide6_Essentials==6.5.1.1 -Requests==2.31.0 typing_extensions==3.10.0.0 ujson==5.8.0 diff --git a/tagstudio/src/cli/ts_cli.py b/tagstudio/src/cli/ts_cli.py index 8e35bf17..560d22b2 100644 --- a/tagstudio/src/cli/ts_cli.py +++ b/tagstudio/src/cli/ts_cli.py @@ -2,7 +2,7 @@ # Licensed under the GPL-3.0 License. # Created for TagStudio: https://github.com/CyanVoxel/TagStudio -"""A basic CLI driver for TagStudio.""" +"""DEPRECIATED: A basic CLI driver for TagStudio.""" import datetime import math @@ -16,8 +16,8 @@ import pillow_avif from pathlib import Path import traceback import cv2 -import climage -import click +# import climage +# import click from datetime import datetime as dt from src.core.ts_core import * from src.core.utils.web import * @@ -664,8 +664,8 @@ class CliDriver: os.get_terminal_size()[0]) if max_width > 0: thumb_width = max_width if thumb_width > max_width else thumb_width - image = climage.convert(final_img_path, is_truecolor=True, is_256color=False, - is_16color=False, is_8color=False, width=thumb_width) + # image = climage.convert(final_img_path, is_truecolor=True, is_256color=False, + # is_16color=False, is_8color=False, width=thumb_width) # Center Alignment Hack spacing = (os.get_terminal_size()[0] - thumb_width) // 2 if not self.args.external_preview or not entry: @@ -2616,8 +2616,9 @@ class CliDriver: # print(self.format_subtitle( # 'Add Remove <#> Open File Close/Done Quit')) - new_content: str = click.edit(self.lib.get_field_attr( - entry.fields[field_index], 'content')) + # new_content: str = click.edit(self.lib.get_field_attr( + # entry.fields[field_index], 'content')) + new_content: str = '' # NOTE: Removing if new_content is not None: if not allow_newlines: new_content = new_content.replace('\r', '').replace('\n', '') @@ -3138,7 +3139,8 @@ class CliDriver: print(self.format_title('Opened with Default Text Editor', f'{BLACK_FG}{BRIGHT_CYAN_BG}')) - new_text: str = click.edit(text) + # new_text: str = click.edit(text) + new_text: str = input() if new_text is not None: if not allow_newlines: new_text = new_text.replace('\r', '').replace('\n', '') diff --git a/tagstudio/src/core/ts_core.py b/tagstudio/src/core/ts_core.py index 211ccfa9..f24dcd24 100644 --- a/tagstudio/src/core/ts_core.py +++ b/tagstudio/src/core/ts_core.py @@ -10,7 +10,7 @@ from types import FunctionType import json from pathlib import Path import traceback -import requests +# import requests # from bs4 import BeautifulSoup as bs from src.core.library import * from src.core.field_template import FieldTemplate