diff --git a/pywhatkit/ascii_art.py b/pywhatkit/ascii_art.py index 8e72b78..1ee576f 100755 --- a/pywhatkit/ascii_art.py +++ b/pywhatkit/ascii_art.py @@ -4,7 +4,7 @@ def image_to_ascii_art( - img_path: str, output_file: Optional[str] = "pywhatkit_asciiart" + img_path: str, output_file: Optional[str] = "pywhatkit_asciiart" ) -> str: """Convert an Image to ASCII Art""" @@ -24,7 +24,7 @@ def image_to_ascii_art( new_pixels_count = len(new_pixels) ascii_image = [ - new_pixels[index: index + new_width] + new_pixels[index : index + new_width] for index in range(0, new_pixels_count, new_width) ] ascii_image = "\n".join(ascii_image) diff --git a/pywhatkit/handwriting.py b/pywhatkit/handwriting.py index 3f2c0ae..cd8430c 100755 --- a/pywhatkit/handwriting.py +++ b/pywhatkit/handwriting.py @@ -4,7 +4,7 @@ def text_to_handwriting( - string: str, save_to: str = "pywhatkit.png", rgb: tuple = (0, 0, 0) + string: str, save_to: str = "pywhatkit.png", rgb: tuple = (0, 0, 0) ) -> None: """Convert the given String to Handwritten Characters""" diff --git a/pywhatkit/mail.py b/pywhatkit/mail.py index 575bc3d..f78010a 100755 --- a/pywhatkit/mail.py +++ b/pywhatkit/mail.py @@ -8,11 +8,11 @@ def send_mail( - email_sender: str, - password: str, - subject: str, - message: Union[str, MIMEText], - email_receiver: str, + email_sender: str, + password: str, + subject: str, + message: Union[str, MIMEText], + email_receiver: str, ) -> None: """Send an Email""" @@ -48,7 +48,7 @@ def send_mail( def send_hmail( - email_sender: str, password: str, subject: str, html_code: str, email_receiver: str + email_sender: str, password: str, subject: str, html_code: str, email_receiver: str ) -> None: """Send an Email with HTML Code""" diff --git a/pywhatkit/misc.py b/pywhatkit/misc.py index eeadd2b..ace32a6 100644 --- a/pywhatkit/misc.py +++ b/pywhatkit/misc.py @@ -12,9 +12,8 @@ if system().lower() in ("windows", "darwin"): from PIL import ImageGrab - def take_screenshot( - file_name: str = "pywhatkit_screenshot", delay: int = 2, show: bool = True + file_name: str = "pywhatkit_screenshot", delay: int = 2, show: bool = True ) -> None: """Take Screenshot of the Screen""" diff --git a/pywhatkit/remotekit.py b/pywhatkit/remotekit.py index f59d5e0..62496cf 100644 --- a/pywhatkit/remotekit.py +++ b/pywhatkit/remotekit.py @@ -310,6 +310,7 @@ def start_server(port=8000, print_msg=True): print("Print Ctrl+C to exit") app.run(host="0.0.0.0", port=port) + # app.run(host='0.0.0.0') # # diff --git a/pywhatkit/whats.py b/pywhatkit/whats.py index 08d6f30..96a4d7c 100755 --- a/pywhatkit/whats.py +++ b/pywhatkit/whats.py @@ -66,11 +66,11 @@ def set_frontmost_process(browser_name) -> None: def sendwhatmsg_instantly( - phone_no: str, - message: str, - wait_time: int = 15, - tab_close: bool = False, - close_time: int = 3, + phone_no: str, + message: str, + wait_time: int = 15, + tab_close: bool = False, + close_time: int = 3, ) -> None: """Send WhatsApp Message Instantly""" @@ -116,11 +116,11 @@ def sendwhatmsg_instantly( def sendimg_or_video_immediately( - phone_no: str, - path: str, - wait_time: int = 15, - tab_close: bool = False, - close_time: int = 3, + phone_no: str, + path: str, + wait_time: int = 15, + tab_close: bool = False, + close_time: int = 3, ) -> None: """Send WhatsApp Message Instantly""" @@ -193,13 +193,13 @@ def sendimg_or_video_immediately( def sendwhatmsg( - phone_no: str, - message: Union[list, str], - time_hour: int, - time_min: int, - wait_time: int = 15, - tab_close: bool = False, - close_time: int = 3, + phone_no: str, + message: Union[list, str], + time_hour: int, + time_min: int, + wait_time: int = 15, + tab_close: bool = False, + close_time: int = 3, ) -> None: """Send a WhatsApp Message at a Certain Time""" if not core.check_number(number=phone_no): @@ -241,13 +241,13 @@ def sendwhatmsg( def sendwhatmsg_to_group( - group_id: str, - message: str, - time_hour: int, - time_min: int, - wait_time: int = 15, - tab_close: bool = False, - close_time: int = 3, + group_id: str, + message: str, + time_hour: int, + time_min: int, + wait_time: int = 15, + tab_close: bool = False, + close_time: int = 3, ) -> None: """Send WhatsApp Message to a Group at a Certain Time""" @@ -279,11 +279,11 @@ def sendwhatmsg_to_group( def sendwhatmsg_to_group_instantly( - group_id: str, - message: str, - wait_time: int = 15, - tab_close: bool = False, - close_time: int = 3, + group_id: str, + message: str, + wait_time: int = 15, + tab_close: bool = False, + close_time: int = 3, ) -> None: """Send WhatsApp Message to a Group Instantly""" @@ -296,13 +296,13 @@ def sendwhatmsg_to_group_instantly( def sendwhatsmsg_to_all( - phone_nos: List[str], - message: str, - time_hour: int, - time_min: int, - wait_time: int = 15, - tab_close: bool = False, - close_time: int = 3, + phone_nos: List[str], + message: str, + time_hour: int, + time_min: int, + wait_time: int = 15, + tab_close: bool = False, + close_time: int = 3, ): for phone_no in phone_nos: sendwhatmsg( @@ -311,14 +311,14 @@ def sendwhatsmsg_to_all( def sendwhats_image( - receiver: str, - img_path: str, - time_hour: int, - time_min: int, - caption: str = "", - wait_time: int = 15, - tab_close: bool = False, - close_time: int = 3, + receiver: str, + img_path: str, + time_hour: int, + time_min: int, + caption: str = "", + wait_time: int = 15, + tab_close: bool = False, + close_time: int = 3, ) -> None: """Send Image to a WhatsApp Contact or Group at a Certain Time"""