diff --git a/pyproject.toml b/pyproject.toml index 7cf82f0..b0b742e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/python_mommy_venv/__init__.py b/python_mommy_venv/__init__.py index 80c357e..29d3862 100644 --- a/python_mommy_venv/__init__.py +++ b/python_mommy_venv/__init__.py @@ -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 diff --git a/python_mommy_venv/static.py b/python_mommy_venv/static.py index 848fd39..ee2b6d5 100644 --- a/python_mommy_venv/static.py +++ b/python_mommy_venv/static.py @@ -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'