removed thermcolor fron deps

This commit is contained in:
amnesia 2025-07-26 10:09:30 +02:00
parent 14681d00ee
commit 9c35c9acdc
3 changed files with 14 additions and 4 deletions

View File

@ -1,7 +1,7 @@
[project]
description = "Mommy's here to support you when running python (in a virtual enviroment)~ ❤️"
name = "python_mommy_venv"
dependencies = ['termcolor']
dependencies = []
authors = []
readme = "README.md"
requires-python = ">=3.9"

View File

@ -2,13 +2,12 @@ import random
import subprocess
import sys
from typing import Optional
import termcolor
import os
import re
import signal
from .config import CONFIG
from .static import RESPONSES, Situation
from .static import RESPONSES, Situation, colors
def _expand_template(template: str) -> str:
for key, value in CONFIG.items():
@ -27,4 +26,4 @@ def get_response(situation: Situation, colorize: Optional[bool] = None):
# return message
if not colorize:
return message
return termcolor.colored(message, attrs=["bold"])
return colors.BOLD + message + colors.ENDC

View File

@ -79,3 +79,14 @@ RESPONSES = {
]
}
}
class colors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKCYAN = '\033[96m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
ENDC = '\033[0m'