|
1 | | -MailThunder API |
| 1 | +API Reference |
| 2 | +============= |
| 3 | + |
| 4 | +This section provides the complete API reference for all public classes, methods, |
| 5 | +and functions in MailThunder. |
| 6 | + |
| 7 | +Public Exports |
| 8 | +-------------- |
| 9 | + |
| 10 | +All public APIs are accessible from the top-level ``je_mail_thunder`` package: |
| 11 | + |
| 12 | +.. code-block:: python |
| 13 | +
|
| 14 | + from je_mail_thunder import ( |
| 15 | + # SMTP |
| 16 | + SMTPWrapper, # SMTP wrapper class |
| 17 | + smtp_instance, # Pre-created SMTP instance (or None) |
| 18 | +
|
| 19 | + # IMAP |
| 20 | + IMAPWrapper, # IMAP wrapper class |
| 21 | + imap_instance, # Pre-created IMAP instance (or None) |
| 22 | +
|
| 23 | + # Authentication |
| 24 | + set_mail_thunder_os_environ, # Set auth env vars |
| 25 | + get_mail_thunder_os_environ, # Get auth env vars |
| 26 | + mail_thunder_content_data_dict, # Global credential dict |
| 27 | + is_need_to_save_content, # Check if credentials need saving |
| 28 | + read_output_content, # Read mail_thunder_content.json |
| 29 | + write_output_content, # Write mail_thunder_content.json |
| 30 | +
|
| 31 | + # Executor |
| 32 | + execute_action, # Execute action list |
| 33 | + execute_files, # Execute multiple action files |
| 34 | + add_command_to_executor, # Register custom commands |
| 35 | +
|
| 36 | + # JSON |
| 37 | + read_action_json, # Read JSON action file |
| 38 | +
|
| 39 | + # File Utilities |
| 40 | + get_dir_files_as_list, # List directory files |
| 41 | +
|
| 42 | + # Project |
| 43 | + create_project_dir, # Scaffold project with templates |
| 44 | + ) |
| 45 | +
|
2 | 46 | ---- |
3 | 47 |
|
4 | | -.. toctree:: |
5 | | - :maxdepth: 4 |
| 48 | +Module Map |
| 49 | +---------- |
6 | 50 |
|
7 | | - imap_api.rst |
8 | | - smtp_api.rst |
| 51 | +.. list-table:: |
| 52 | + :header-rows: 1 |
| 53 | + :widths: 40 60 |
9 | 54 |
|
| 55 | + * - Import Path |
| 56 | + - Description |
| 57 | + * - ``je_mail_thunder.smtp.smtp_wrapper`` |
| 58 | + - ``SMTPWrapper`` class, ``smtp_instance`` |
| 59 | + * - ``je_mail_thunder.imap.imap_wrapper`` |
| 60 | + - ``IMAPWrapper`` class, ``imap_instance`` |
| 61 | + * - ``je_mail_thunder.utils.executor.action_executor`` |
| 62 | + - ``Executor`` class, ``execute_action()``, ``execute_files()``, ``add_command_to_executor()`` |
| 63 | + * - ``je_mail_thunder.utils.save_mail_user_content.save_on_env`` |
| 64 | + - ``set_mail_thunder_os_environ()``, ``get_mail_thunder_os_environ()`` |
| 65 | + * - ``je_mail_thunder.utils.save_mail_user_content.mail_thunder_content_save`` |
| 66 | + - ``read_output_content()``, ``write_output_content()`` |
| 67 | + * - ``je_mail_thunder.utils.save_mail_user_content.mail_thunder_content_data`` |
| 68 | + - ``mail_thunder_content_data_dict``, ``is_need_to_save_content()`` |
| 69 | + * - ``je_mail_thunder.utils.json.json_file`` |
| 70 | + - ``read_action_json()``, ``write_action_json()`` |
| 71 | + * - ``je_mail_thunder.utils.json_format.json_process`` |
| 72 | + - ``reformat_json()`` |
| 73 | + * - ``je_mail_thunder.utils.file_process.get_dir_file_list`` |
| 74 | + - ``get_dir_files_as_list()`` |
| 75 | + * - ``je_mail_thunder.utils.project.create_project_structure`` |
| 76 | + - ``create_project_dir()`` |
| 77 | + * - ``je_mail_thunder.utils.package_manager.package_manager_class`` |
| 78 | + - ``PackageManager`` class, ``package_manager`` |
| 79 | + * - ``je_mail_thunder.utils.socket_server.mail_thunder_socket_server`` |
| 80 | + - ``TCPServer``, ``TCPServerHandler``, ``start_autocontrol_socket_server()`` |
| 81 | + * - ``je_mail_thunder.utils.logging.loggin_instance`` |
| 82 | + - ``mail_thunder_logger`` |
| 83 | + * - ``je_mail_thunder.utils.exception.exceptions`` |
| 84 | + - All custom exception classes |
| 85 | + * - ``je_mail_thunder.utils.exception.exception_tags`` |
| 86 | + - Error tag strings |
0 commit comments