python-termii 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {python_termii-0.1.0/python_termii.egg-info → python_termii-0.1.1}/PKG-INFO +1 -1
  2. {python_termii-0.1.0 → python_termii-0.1.1/python_termii.egg-info}/PKG-INFO +1 -1
  3. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/__init__.py +1 -1
  4. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/client.py +6 -0
  5. {python_termii-0.1.0 → python_termii-0.1.1}/LICENSE +0 -0
  6. {python_termii-0.1.0 → python_termii-0.1.1}/README.md +0 -0
  7. {python_termii-0.1.0 → python_termii-0.1.1}/pyproject.toml +0 -0
  8. {python_termii-0.1.0 → python_termii-0.1.1}/python_termii.egg-info/SOURCES.txt +0 -0
  9. {python_termii-0.1.0 → python_termii-0.1.1}/python_termii.egg-info/dependency_links.txt +0 -0
  10. {python_termii-0.1.0 → python_termii-0.1.1}/python_termii.egg-info/requires.txt +0 -0
  11. {python_termii-0.1.0 → python_termii-0.1.1}/python_termii.egg-info/top_level.txt +0 -0
  12. {python_termii-0.1.0 → python_termii-0.1.1}/setup.cfg +0 -0
  13. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/config.py +0 -0
  14. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/http/__init__.py +0 -0
  15. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/http/request_handler.py +0 -0
  16. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/http/request_response.py +0 -0
  17. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/__init__.py +0 -0
  18. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/campaign.py +0 -0
  19. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/contact.py +0 -0
  20. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/message.py +0 -0
  21. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/number.py +0 -0
  22. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/phonebook.py +0 -0
  23. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/sender_id.py +0 -0
  24. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/template.py +0 -0
  25. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/utils/__init__.py +0 -0
  26. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/utils/exception.py +0 -0
  27. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/value_object/__init__.py +0 -0
  28. {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/value_object/phone_number.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-termii
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A clean Python SDK for the Termii API (SMS, Voice, and OTP)
5
5
  Author-email: Samuel Doghor Destiny <labs@amdoghor.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-termii
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A clean Python SDK for the Termii API (SMS, Voice, and OTP)
5
5
  Author-email: Samuel Doghor Destiny <labs@amdoghor.com>
6
6
  License-Expression: MIT
@@ -7,4 +7,4 @@ to make API requests and handle responses effectively.
7
7
  from .client import TermiiClient
8
8
 
9
9
  __all__ = ["TermiiClient"]
10
- __version__ = "0.1.0"
10
+ __version__ = "0.1.1"
@@ -42,6 +42,12 @@ class TermiiClient:
42
42
  def __init__(self, api_key: str = None, base_url: str = None):
43
43
  self.api_key = api_key or config.TERMII_API_KEY
44
44
  self.base_url = base_url or config.TERMII_BASE_URL
45
+
46
+ if not self.api_key:
47
+ raise ValueError("api_key is required. Pass it directly or set TERMII_API_KEY in your environment.")
48
+ if not self.base_url:
49
+ raise ValueError("base_url is required. Pass it directly or set TERMII_BASE_URL in your environment.")
50
+
45
51
  self.http = RequestHandler(self.api_key, self.base_url)
46
52
  self.sender_id = SenderIDService(self.http)
47
53
  self.message = MessageService(self.http)
File without changes
File without changes
File without changes