The PyWhatKit library is designed with a clear separation of concerns, centered around a `PyWhatKit API Facade` that serves as the primary interaction point for external `User Interface/Client` applications. This facade orchestrates requests by delegating specific tasks to specialized internal modules: `WhatsApp Automation Module`, `Email Automation Module`, `Remote Control Module`, and `Image & Text Transformation Module`. These modules encapsulate the logic for their respective domains. A foundational `Core Web & System Utilities` module provides low-level browser and system interaction capabilities, serving as a dependency for web-based automation. All modules requiring external communication interact with `External Services` such as WhatsApp Web, YouTube, SMTP servers, or remote phone clients, ensuring a clear boundary between the library's internal logic and external dependencies. This architecture promotes modularity, maintainability, and clear data flow, making it well-suited for both documentation and visual diagram generation.
Components
User Interface/Client
Represents the external user or application initiating commands and data to the PyWhatKit library. This component is external to the PyWhatKit codebase and thus has no internal source code references.
PyWhatKit API Facade
The central entry point and orchestrator of the library. It provides a simplified, high-level interface to all underlying functionalities, abstracting their complexities.
Referenced Source Code
WhatsApp Automation Module
Dedicated to automating interactions with WhatsApp Web, including sending messages, images, and managing contacts. It leverages core web utilities for browser control.
Referenced Source Code
Email Automation Module
Manages the functionality for sending emails, supporting both plain text and HTML formats, by communicating with external SMTP servers.
Referenced Source Code
Remote Control Module
Implements the server-side logic for remote control features, enabling external clients (e.g., a phone) to interact with and control the system running PyWhatKit.
Referenced Source Code
Image & Text Transformation Module
Provides utilities for creative text and image manipulations, specifically converting images/text into ASCII art and generating handwriting-style text.
Referenced Source Code
Core Web & System Utilities
A foundational module providing low-level utilities for web browser interaction (e.g., opening pages, finding elements, handling images) and general system-level operations (e.g., screenshots, process management). It serves as a dependency for web-based automation modules.
Referenced Source Code
External Services
Represents all external systems PyWhatKit interacts with, including WhatsApp Web, YouTube, SMTP servers for email, and phone clients for remote control. This component is external to the PyWhatKit codebase and thus has no internal source code references.