diff --git a/examples/event_handler_large_tips.py b/examples/event_handler_large_tips.py index 12966558..521a0704 100644 --- a/examples/event_handler_large_tips.py +++ b/examples/event_handler_large_tips.py @@ -1,7 +1,6 @@ import asyncio -from chaturbate_poller.chaturbate_client import ChaturbateClient -from chaturbate_poller.config_manager import ConfigManager +from chaturbate_poller import ChaturbateClient, ConfigManager LARGE_TIP_THRESHOLD = 100 # Set the threshold for large tips diff --git a/examples/formatted_event_messages.py b/examples/formatted_event_messages.py index ac84e5cc..fe517f27 100644 --- a/examples/formatted_event_messages.py +++ b/examples/formatted_event_messages.py @@ -1,8 +1,6 @@ import asyncio -from chaturbate_poller.chaturbate_client import ChaturbateClient -from chaturbate_poller.config_manager import ConfigManager -from chaturbate_poller.format_messages import format_message +from chaturbate_poller import ChaturbateClient, ConfigManager, format_message config_manager = ConfigManager() username = config_manager.get("CB_USERNAME", "") diff --git a/examples/poll_and_log_events.py b/examples/poll_and_log_events.py index fb18f28c..cf941a61 100644 --- a/examples/poll_and_log_events.py +++ b/examples/poll_and_log_events.py @@ -1,8 +1,7 @@ import asyncio import logging -from chaturbate_poller.chaturbate_client import ChaturbateClient -from chaturbate_poller.config_manager import ConfigManager +from chaturbate_poller import ChaturbateClient, ConfigManager logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) diff --git a/examples/simple_poller.py b/examples/simple_poller.py index 19c56730..92f82a19 100644 --- a/examples/simple_poller.py +++ b/examples/simple_poller.py @@ -1,7 +1,6 @@ import asyncio -from chaturbate_poller.chaturbate_client import ChaturbateClient -from chaturbate_poller.config_manager import ConfigManager +from chaturbate_poller import ChaturbateClient, ConfigManager config_manager = ConfigManager() username = config_manager.get("CB_USERNAME", "") diff --git a/src/chaturbate_poller/__init__.py b/src/chaturbate_poller/__init__.py index 34dfec3e..037a10e4 100644 --- a/src/chaturbate_poller/__init__.py +++ b/src/chaturbate_poller/__init__.py @@ -1,9 +1,10 @@ """chaturbate_poller package.""" -# Read version from installed package from importlib.metadata import version from chaturbate_poller.chaturbate_client import ChaturbateClient +from chaturbate_poller.config_manager import ConfigManager +from chaturbate_poller.format_messages import format_message __version__ = version("chaturbate_poller") __author__ = "MountainGod2" @@ -15,5 +16,4 @@ __description__ = "Python library for interacting with the Chaturbate Events API." -__all__ = ["ChaturbateClient"] -"""List[str]: The package exports.""" +__all__: list[str] = ["ChaturbateClient", "ConfigManager", "format_message"]