From eec0c8a918183acf43fd2140645cd177bade586f Mon Sep 17 00:00:00 2001 From: Filippo Romani Date: Sun, 30 Apr 2023 10:28:06 +0200 Subject: [PATCH] fix: move files to ext/ --- setup.py | 2 +- whatsapp/__init__.py | 16 ++++++++-------- whatsapp/{ => ext}/_buttons.py | 0 whatsapp/{ => ext}/_media.py | 0 whatsapp/{ => ext}/_message.py | 0 whatsapp/{ => ext}/_property.py | 0 whatsapp/{ => ext}/_send_media.py | 0 whatsapp/{ => ext}/_send_others.py | 0 whatsapp/{ => ext}/_static.py | 0 9 files changed, 9 insertions(+), 9 deletions(-) rename whatsapp/{ => ext}/_buttons.py (100%) rename whatsapp/{ => ext}/_media.py (100%) rename whatsapp/{ => ext}/_message.py (100%) rename whatsapp/{ => ext}/_property.py (100%) rename whatsapp/{ => ext}/_send_media.py (100%) rename whatsapp/{ => ext}/_send_others.py (100%) rename whatsapp/{ => ext}/_static.py (100%) diff --git a/setup.py b/setup.py index b7de102..affb568 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name="whatsapp-python", - version="2.2.2", + version="2.3.2", description="Opensource Python wrapper to WhatsApp Cloud API", long_description=long_description, long_description_content_type="text/markdown", diff --git a/whatsapp/__init__.py b/whatsapp/__init__.py index 6f62736..f2a6dbe 100644 --- a/whatsapp/__init__.py +++ b/whatsapp/__init__.py @@ -60,13 +60,13 @@ def __init__(self, token: str = "", phone_number_id: str = "", logger: bool = Tr # all the files starting with _ are imported here, and should not be imported directly. - from ._property import authorized - from ._send_others import send_custom_json, send_contacts - from ._message import send_template - from ._send_media import send_image, send_video, send_audio, send_location, send_sticker, send_document - from ._media import upload_media, query_media_url, download_media, delete_media - from ._buttons import send_button, create_button, send_reply_button - from ._static import is_message, get_mobile, get_author, get_name, get_message, get_message_id, get_message_type, get_message_timestamp, get_audio, get_delivery, get_document, get_image, get_interactive_response, get_location, get_video, changed_field + from ext._property import authorized + from ext._send_others import send_custom_json, send_contacts + from ext._message import send_template + from ext._send_media import send_image, send_video, send_audio, send_location, send_sticker, send_document + from ext._media import upload_media, query_media_url, download_media, delete_media + from ext._buttons import send_button, create_button, send_reply_button + from ext._static import is_message, get_mobile, get_author, get_name, get_message, get_message_id, get_message_type, get_message_timestamp, get_audio, get_delivery, get_document, get_image, get_interactive_response, get_location, get_video, changed_field is_message = staticmethod(is_message) get_mobile = staticmethod(get_mobile) get_name = staticmethod(get_name) @@ -162,4 +162,4 @@ def __init__(self, data: dict = {}, instance: WhatsApp = None, content: str = "" self.url = self.instance.url self.headers = self.instance.headers - from ._message import send, reply, mark_as_read \ No newline at end of file + from ext._message import send, reply, mark_as_read \ No newline at end of file diff --git a/whatsapp/_buttons.py b/whatsapp/ext/_buttons.py similarity index 100% rename from whatsapp/_buttons.py rename to whatsapp/ext/_buttons.py diff --git a/whatsapp/_media.py b/whatsapp/ext/_media.py similarity index 100% rename from whatsapp/_media.py rename to whatsapp/ext/_media.py diff --git a/whatsapp/_message.py b/whatsapp/ext/_message.py similarity index 100% rename from whatsapp/_message.py rename to whatsapp/ext/_message.py diff --git a/whatsapp/_property.py b/whatsapp/ext/_property.py similarity index 100% rename from whatsapp/_property.py rename to whatsapp/ext/_property.py diff --git a/whatsapp/_send_media.py b/whatsapp/ext/_send_media.py similarity index 100% rename from whatsapp/_send_media.py rename to whatsapp/ext/_send_media.py diff --git a/whatsapp/_send_others.py b/whatsapp/ext/_send_others.py similarity index 100% rename from whatsapp/_send_others.py rename to whatsapp/ext/_send_others.py diff --git a/whatsapp/_static.py b/whatsapp/ext/_static.py similarity index 100% rename from whatsapp/_static.py rename to whatsapp/ext/_static.py