vobiz-python 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 (70) hide show
  1. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/LICENSE.txt +1 -1
  2. {vobiz_python-0.1.0/vobiz_python.egg-info → vobiz_python-0.1.1}/PKG-INFO +7 -7
  3. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/README.md +5 -5
  4. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/setup.py +2 -2
  5. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/resources/accounts.py +9 -9
  6. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/version.py +1 -1
  7. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/ResponseElement.py +8 -8
  8. {vobiz_python-0.1.0 → vobiz_python-0.1.1/vobiz_python.egg-info}/PKG-INFO +7 -7
  9. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/MANIFEST.in +0 -0
  10. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/pyproject.toml +0 -0
  11. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/setup.cfg +0 -0
  12. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/__init__.py +0 -0
  13. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/base.py +0 -0
  14. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/exceptions.py +0 -0
  15. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/resources/__init__.py +0 -0
  16. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/resources/applications.py +0 -0
  17. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/resources/calls_vobiz.py +0 -0
  18. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/resources/cdrs.py +0 -0
  19. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/resources/credentials.py +0 -0
  20. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/resources/endpoints.py +0 -0
  21. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/resources/ip_access_control_lists.py +0 -0
  22. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/resources/numbers.py +0 -0
  23. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/resources/origination_uris.py +0 -0
  24. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/resources/recordings.py +0 -0
  25. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/resources/sip_trunks.py +0 -0
  26. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/resources/subaccounts.py +0 -0
  27. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/rest/__init__.py +0 -0
  28. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/rest/client.py +0 -0
  29. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/utils/__init__.py +0 -0
  30. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/utils/interactive.py +0 -0
  31. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/utils/jwt.py +0 -0
  32. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/utils/location.py +0 -0
  33. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/utils/signature_v3.py +0 -0
  34. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/utils/template.py +0 -0
  35. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/utils/validators.py +0 -0
  36. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/ConferenceElement.py +0 -0
  37. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/DTMFElement.py +0 -0
  38. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/DialElement.py +0 -0
  39. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/MultiPartyCallElement.py +0 -0
  40. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/VobizXMLElement.py +0 -0
  41. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/__init__.py +0 -0
  42. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/breakElement.py +0 -0
  43. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/contElement.py +0 -0
  44. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/emphasisElement.py +0 -0
  45. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/getDigitsElement.py +0 -0
  46. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/getInputElement.py +0 -0
  47. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/hangupElement.py +0 -0
  48. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/langElement.py +0 -0
  49. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/messageElement.py +0 -0
  50. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/numberElement.py +0 -0
  51. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/pElement.py +0 -0
  52. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/phonemeElement.py +0 -0
  53. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/playElement.py +0 -0
  54. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/preAnswerElement.py +0 -0
  55. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/prosodyElement.py +0 -0
  56. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/recordElement.py +0 -0
  57. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/redirectElement.py +0 -0
  58. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/sElement.py +0 -0
  59. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/sayAsElement.py +0 -0
  60. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/speakElement.py +0 -0
  61. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/streamElement.py +0 -0
  62. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/subElement.py +0 -0
  63. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/userElement.py +0 -0
  64. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/wElement.py +0 -0
  65. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/waitElement.py +0 -0
  66. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz/xml/xmlUtils.py +0 -0
  67. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz_python.egg-info/SOURCES.txt +0 -0
  68. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz_python.egg-info/dependency_links.txt +0 -0
  69. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz_python.egg-info/requires.txt +0 -0
  70. {vobiz_python-0.1.0 → vobiz_python-0.1.1}/vobiz_python.egg-info/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- Copyright (C) 2024, Vobiz Inc.
1
+ Copyright (C) 2026, Vobiz Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of
4
4
  this software and associated documentation files (the "Software"), to deal in
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vobiz-python
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Vobiz Python SDK for voice, trunks, phone numbers, endpoints, and XML.
5
- Home-page: https://github.com/Piyush-sahoo/Vobiz-Python-SDK
5
+ Home-page: https://github.com/vobiz-ai/Vobiz-Python-SDK
6
6
  Author: Vobiz
7
7
  Author-email: support@vobiz.ai
8
8
  License: MIT
@@ -82,13 +82,13 @@ Make outbound calls, manage SIP trunks, phone numbers, endpoints, and build dyna
82
82
  ## Installation
83
83
 
84
84
  ```bash
85
- pip install vobiz
85
+ pip install vobiz-python
86
86
  ```
87
87
 
88
88
  Or install from source:
89
89
 
90
90
  ```bash
91
- git clone https://github.com/Piyush-sahoo/Vobiz-Python-SDK.git
91
+ git clone https://github.com/vobiz-ai/Vobiz-Python-SDK.git
92
92
  cd Vobiz-Python-SDK
93
93
  pip install -e .
94
94
  ```
@@ -322,7 +322,7 @@ client.applications.delete(app_id)
322
322
  # Browse available numbers in inventory
323
323
  inventory = client.phone_numbers.list_inventory(country="IN", page=1, per_page=20)
324
324
  for num in inventory.items:
325
- print(num['e164'], num['monthly_rate'])
325
+ print(num.e164, num.monthly_fee)
326
326
 
327
327
  # Purchase a number
328
328
  client.phone_numbers.purchase_from_inventory(e164="+911234567890", currency="INR")
@@ -384,7 +384,7 @@ client.endpoints.delete(endpoint_id)
384
384
  # List all SIP trunks
385
385
  trunks = client.sip_trunks.list()
386
386
  for trunk in trunks.objects:
387
- print(trunk.id, trunk.name)
387
+ print(trunk.trunk_id, trunk.name)
388
388
 
389
389
  # Get a specific trunk
390
390
  trunk = client.sip_trunks.get("trunk-uuid")
@@ -413,7 +413,7 @@ Whitelist IP addresses for inbound SIP traffic.
413
413
  ```python
414
414
  # Create an IP ACL entry
415
415
  acl = client.ip_access_control_lists.create(
416
- ip_address="203.0.113.10",
416
+ ip_address="1.2.3.4",
417
417
  description="Office static IP",
418
418
  )
419
419
  acl_id = acl.id
@@ -36,13 +36,13 @@ Make outbound calls, manage SIP trunks, phone numbers, endpoints, and build dyna
36
36
  ## Installation
37
37
 
38
38
  ```bash
39
- pip install vobiz
39
+ pip install vobiz-python
40
40
  ```
41
41
 
42
42
  Or install from source:
43
43
 
44
44
  ```bash
45
- git clone https://github.com/Piyush-sahoo/Vobiz-Python-SDK.git
45
+ git clone https://github.com/vobiz-ai/Vobiz-Python-SDK.git
46
46
  cd Vobiz-Python-SDK
47
47
  pip install -e .
48
48
  ```
@@ -276,7 +276,7 @@ client.applications.delete(app_id)
276
276
  # Browse available numbers in inventory
277
277
  inventory = client.phone_numbers.list_inventory(country="IN", page=1, per_page=20)
278
278
  for num in inventory.items:
279
- print(num['e164'], num['monthly_rate'])
279
+ print(num.e164, num.monthly_fee)
280
280
 
281
281
  # Purchase a number
282
282
  client.phone_numbers.purchase_from_inventory(e164="+911234567890", currency="INR")
@@ -338,7 +338,7 @@ client.endpoints.delete(endpoint_id)
338
338
  # List all SIP trunks
339
339
  trunks = client.sip_trunks.list()
340
340
  for trunk in trunks.objects:
341
- print(trunk.id, trunk.name)
341
+ print(trunk.trunk_id, trunk.name)
342
342
 
343
343
  # Get a specific trunk
344
344
  trunk = client.sip_trunks.get("trunk-uuid")
@@ -367,7 +367,7 @@ Whitelist IP addresses for inbound SIP traffic.
367
367
  ```python
368
368
  # Create an IP ACL entry
369
369
  acl = client.ip_access_control_lists.create(
370
- ip_address="203.0.113.10",
370
+ ip_address="1.2.3.4",
371
371
  description="Office static IP",
372
372
  )
373
373
  acl_id = acl.id
@@ -5,11 +5,11 @@ long_description = Path("README.md").read_text(encoding="utf-8")
5
5
 
6
6
  setup(
7
7
  name="vobiz-python",
8
- version='0.1.0',
8
+ version='0.1.1',
9
9
  description='Vobiz Python SDK for voice, trunks, phone numbers, endpoints, and XML.',
10
10
  long_description=long_description,
11
11
  long_description_content_type='text/markdown',
12
- url='https://github.com/Piyush-sahoo/Vobiz-Python-SDK',
12
+ url='https://github.com/vobiz-ai/Vobiz-Python-SDK',
13
13
  author='Vobiz',
14
14
  author_email='support@vobiz.ai',
15
15
  license='MIT',
@@ -22,11 +22,11 @@ class Accounts:
22
22
  )
23
23
  return self.client.process_response("GET", resp)
24
24
 
25
- def get_transactions(self, account_id, limit=None, offset=None):
25
+ def get_transactions(self, auth_id, limit=None, offset=None):
26
26
  """
27
- GET https://api.vobiz.ai/api/v1/account/{account_id}/transactions
27
+ GET https://api.vobiz.ai/api/v1/account/{auth_id}/transactions
28
28
  """
29
- url = f"{VOBIZ_API_V1}/account/{account_id}/transactions"
29
+ url = f"{VOBIZ_API_V1}/account/{auth_id}/transactions"
30
30
  params = {}
31
31
  if limit is not None:
32
32
  params["limit"] = limit
@@ -37,21 +37,21 @@ class Accounts:
37
37
  )
38
38
  return self.client.process_response("GET", resp)
39
39
 
40
- def get_balance(self, account_id, currency):
40
+ def get_balance(self, auth_id, currency):
41
41
  """
42
- GET https://api.vobiz.ai/api/v1/account/{account_id}/balance/{currency}
42
+ GET https://api.vobiz.ai/api/v1/account/{auth_id}/balance/{currency}
43
43
  """
44
- url = f"{VOBIZ_API_V1}/account/{account_id}/balance/{currency}"
44
+ url = f"{VOBIZ_API_V1}/account/{auth_id}/balance/{currency}"
45
45
  resp = self.client.session.get(
46
46
  url, timeout=self.client.timeout, proxies=self.client.proxies
47
47
  )
48
48
  return self.client.process_response("GET", resp)
49
49
 
50
- def get_concurrency(self, account_id):
50
+ def get_concurrency(self, auth_id):
51
51
  """
52
- GET https://api.vobiz.ai/api/v1/account/{account_id}/concurrency
52
+ GET https://api.vobiz.ai/api/v1/account/{auth_id}/concurrency
53
53
  """
54
- url = f"{VOBIZ_API_V1}/account/{account_id}/concurrency"
54
+ url = f"{VOBIZ_API_V1}/account/{auth_id}/concurrency"
55
55
  resp = self.client.session.get(
56
56
  url, timeout=self.client.timeout, proxies=self.client.proxies
57
57
  )
@@ -1,2 +1,2 @@
1
1
  # -*- coding: utf-8 -*-
2
- __version__ = '0.1.0'
2
+ __version__ = '0.1.1'
@@ -95,8 +95,7 @@ class ResponseElement(VobizXMLElement):
95
95
  digits_match_b_leg=None,
96
96
  sip_headers=None,
97
97
  ):
98
- self.add(
99
- DialElement(
98
+ dial = DialElement(
100
99
  action=action,
101
100
  method=method,
102
101
  hangup_on_star=hangup_on_star,
@@ -113,8 +112,9 @@ class ResponseElement(VobizXMLElement):
113
112
  digits_match=digits_match,
114
113
  digits_match_b_leg=digits_match_b_leg,
115
114
  sip_headers=sip_headers,
116
- ))
117
- return self
115
+ )
116
+ self.add(dial)
117
+ return dial
118
118
 
119
119
  def add_dtmf(
120
120
  self,
@@ -142,8 +142,7 @@ class ResponseElement(VobizXMLElement):
142
142
  invalid_digits_sound=None,
143
143
  log=None,
144
144
  ):
145
- self.add(
146
- GetDigitsElement(
145
+ el = GetDigitsElement(
147
146
  action=action,
148
147
  method=method,
149
148
  timeout=timeout,
@@ -156,8 +155,9 @@ class ResponseElement(VobizXMLElement):
156
155
  valid_digits=valid_digits,
157
156
  invalid_digits_sound=invalid_digits_sound,
158
157
  log=log,
159
- ))
160
- return self
158
+ )
159
+ self.add(el)
160
+ return el
161
161
 
162
162
  def add_get_input(
163
163
  self,
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vobiz-python
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Vobiz Python SDK for voice, trunks, phone numbers, endpoints, and XML.
5
- Home-page: https://github.com/Piyush-sahoo/Vobiz-Python-SDK
5
+ Home-page: https://github.com/vobiz-ai/Vobiz-Python-SDK
6
6
  Author: Vobiz
7
7
  Author-email: support@vobiz.ai
8
8
  License: MIT
@@ -82,13 +82,13 @@ Make outbound calls, manage SIP trunks, phone numbers, endpoints, and build dyna
82
82
  ## Installation
83
83
 
84
84
  ```bash
85
- pip install vobiz
85
+ pip install vobiz-python
86
86
  ```
87
87
 
88
88
  Or install from source:
89
89
 
90
90
  ```bash
91
- git clone https://github.com/Piyush-sahoo/Vobiz-Python-SDK.git
91
+ git clone https://github.com/vobiz-ai/Vobiz-Python-SDK.git
92
92
  cd Vobiz-Python-SDK
93
93
  pip install -e .
94
94
  ```
@@ -322,7 +322,7 @@ client.applications.delete(app_id)
322
322
  # Browse available numbers in inventory
323
323
  inventory = client.phone_numbers.list_inventory(country="IN", page=1, per_page=20)
324
324
  for num in inventory.items:
325
- print(num['e164'], num['monthly_rate'])
325
+ print(num.e164, num.monthly_fee)
326
326
 
327
327
  # Purchase a number
328
328
  client.phone_numbers.purchase_from_inventory(e164="+911234567890", currency="INR")
@@ -384,7 +384,7 @@ client.endpoints.delete(endpoint_id)
384
384
  # List all SIP trunks
385
385
  trunks = client.sip_trunks.list()
386
386
  for trunk in trunks.objects:
387
- print(trunk.id, trunk.name)
387
+ print(trunk.trunk_id, trunk.name)
388
388
 
389
389
  # Get a specific trunk
390
390
  trunk = client.sip_trunks.get("trunk-uuid")
@@ -413,7 +413,7 @@ Whitelist IP addresses for inbound SIP traffic.
413
413
  ```python
414
414
  # Create an IP ACL entry
415
415
  acl = client.ip_access_control_lists.create(
416
- ip_address="203.0.113.10",
416
+ ip_address="1.2.3.4",
417
417
  description="Office static IP",
418
418
  )
419
419
  acl_id = acl.id
File without changes
File without changes
File without changes