Skip to content

Commit

Permalink
update dependency versions, prep for NI release
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkahan committed Apr 29, 2024
1 parent 61718d6 commit 5f6667d
Show file tree
Hide file tree
Showing 26 changed files with 142 additions and 54 deletions.
3 changes: 3 additions & 0 deletions http_client/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.3.1
- Update minimum dependency version

# 1.3.0
- Add new PUT method

Expand Down
6 changes: 3 additions & 3 deletions http_client/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[project]
name = "vonage-http-client"
version = "1.3.0"
version = "1.3.1"
description = "An HTTP client for making requests to Vonage APIs."
readme = "README.md"
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
requires-python = ">=3.8"
dependencies = [
"vonage-utils>=1.1.0",
"vonage-utils>=1.1.1",
"vonage-jwt>=1.1.0",
"requests>=2.27.0",
"typing-extensions>=4.9.0",
"pydantic>=2.6.1",
"pydantic>=2.7.1",
]
classifiers = [
"Programming Language :: Python",
Expand Down
3 changes: 3 additions & 0 deletions messages/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.1.1
- Update minimum dependency version

# 1.1.0
- Add `http_client` property

Expand Down
8 changes: 4 additions & 4 deletions messages/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[project]
name = 'vonage-messages'
version = '1.1.0'
version = '1.1.1'
description = 'Vonage messages package'
readme = "README.md"
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
requires-python = ">=3.8"
dependencies = [
"vonage-http-client>=1.3.0",
"vonage-utils>=1.1.0",
"pydantic>=2.6.1",
"vonage-http-client>=1.3.1",
"vonage-utils>=1.1.1",
"pydantic>=2.7.1",
]
classifiers = [
"Programming Language :: Python",
Expand Down
52 changes: 52 additions & 0 deletions number_insight/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,55 @@ The advanced insight can be obtained synchronously or asynchronously. An async a
It is recommended to use this as part of the main `vonage` package. The examples below assume you've created an instance of the `vonage.Vonage` class called `vonage_client`.

### Make a Basic Number Insight Request

```python
from vonage_number_insight import BasicInsightRequest

response = vonage_client.number_insight.basic_number_insight(
BasicInsightRequest(number='12345678900')
)

print(response.model_dump(exclude_none=True))
```

### Make a Standard Number Insight Request

```python
from vonage_number_insight import StandardInsightRequest

vonage_client.number_insight.standard_number_insight(
StandardInsightRequest(number='12345678900')
)

# Optionally, you can get caller name information (additional charge) by setting the `cnam` parameter = True
vonage_client.number_insight.standard_number_insight(
StandardInsightRequest(number='12345678900', cnam=True)
)
```

### Make an Asynchronous Advanced Number Insight Request

When making an asynchronous advanced number insight request, the API will return basic information about the request to you immediately and send the full data to the webhook callback URL you specify.

```python
from vonage_number_insight import AdvancedAsyncInsightRequest

vonage_client.number_insight.advanced_async_number_insight(
AdvancedAsyncInsightRequest(callback='https://example.com', number='12345678900')
)
```

### Make a Synchronous Advanced Number Insight Request

```python
from vonage_number_insight import AdvancedSyncInsightRequest

vonage_client.number_insight.advanced_sync_number_insight(
AdvancedSyncInsightRequest(number='12345678900')
)

# Optionally, you can get real time information by setting the `real_time_data` parameter = True
vonage_client.number_insight.advanced_async_number_insight(
AdvancedSyncInsightRequest(number='12345678900', real_time_data=True, cnam=True)
)
```
6 changes: 3 additions & 3 deletions number_insight/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ readme = "README.md"
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
requires-python = ">=3.8"
dependencies = [
"vonage-http-client>=1.3.0",
"vonage-utils>=1.1.0",
"pydantic>=2.6.1",
"vonage-http-client>=1.3.1",
"vonage-utils>=1.1.1",
"pydantic>=2.7.1",
]
classifiers = [
"Programming Language :: Python",
Expand Down
Empty file.
5 changes: 0 additions & 5 deletions number_insight/src/vonage_number_insight/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ class StandardInsightResponse(BasicInsightResponse):
original_carrier: Optional[Carrier] = None
ported: Optional[str] = None
caller_identity: Optional[CallerIdentity] = None
caller_type: Optional[str] = None
caller_name: Optional[str] = None
first_name: Optional[str] = None
last_name: Optional[str] = None


class RoamingStatus(BaseModel):
Expand All @@ -63,7 +59,6 @@ class AdvancedSyncInsightResponse(StandardInsightResponse):
valid_number: Optional[str] = None
reachable: Optional[str] = None
real_time_data: Optional[RealTimeData] = None
ip_warnings: Optional[str] = None


class AdvancedAsyncInsightResponse(BaseModel):
Expand Down
5 changes: 3 additions & 2 deletions number_insight/tests/test_number_insight.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ def test_advanced_sync_insight(caplog):
assert response.status == 44
assert response.request_id == '97e973e7-2e27-4fd3-9e1a-972ea14dd992'
assert response.current_carrier.network_code == '310090'
assert response.first_name == 'John'
assert response.last_name == 'Smith'
assert response.caller_identity.first_name == 'John'
assert response.caller_identity.last_name == 'Smith'
assert response.caller_identity.subscription_type == 'postpaid'
assert response.lookup_outcome == 1
assert response.lookup_outcome_message == 'Partial success - some fields populated'
assert response.roaming == 'unknown'
Expand Down
3 changes: 3 additions & 0 deletions number_insight_v2/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# 0.1.1b0
- Update minimum dependency version

# 0.1.0b0
- Beta release
8 changes: 4 additions & 4 deletions number_insight_v2/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[project]
name = 'vonage-number-insight-v2'
version = '0.1.0b0'
version = '0.1.1b0'
description = 'Vonage Number Insight v2 package'
readme = "README.md"
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
requires-python = ">=3.8"
dependencies = [
"vonage-http-client>=1.3.0",
"vonage-utils>=1.1.0",
"pydantic>=2.6.1",
"vonage-http-client>=1.3.1",
"vonage-utils>=1.1.1",
"pydantic>=2.7.1",
]
classifiers = [
"Programming Language :: Python",
Expand Down
16 changes: 14 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
pytest>=8.0.0
requests>=2.31.0
responses>=0.24.1
pydantic>=2.6.1
pydantic>=2.7.1
typing-extensions>=4.9.0
vonage-jwt>=1.1.0
vonage-jwt>=1.1.0

-e http_client
-e messages
-e number_insight
-e number_insight_v2
-e sms
-e users
-e verify
-e verify_v2
-e voice
-e vonage
-e vonage_utils
3 changes: 3 additions & 0 deletions sms/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.1.1
- Update minimum dependency version

# 1.1.0
- Add `http_client` property

Expand Down
8 changes: 4 additions & 4 deletions sms/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[project]
name = 'vonage-sms'
version = '1.1.0'
version = '1.1.1'
description = 'Vonage SMS package'
readme = "README.md"
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
requires-python = ">=3.8"
dependencies = [
"vonage-http-client>=1.3.0",
"vonage-utils>=1.1.0",
"pydantic>=2.6.1",
"vonage-http-client>=1.3.1",
"vonage-utils>=1.1.1",
"pydantic>=2.7.1",
]
classifiers = [
"Programming Language :: Python",
Expand Down
3 changes: 3 additions & 0 deletions users/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.1.1
- Update minimum dependency version

# 1.1.0
- Add `http_client` property
- Rename `ListUsersRequest` -> `ListUsersFilter`
Expand Down
8 changes: 4 additions & 4 deletions users/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[project]
name = 'vonage-users'
version = '1.1.0'
version = '1.1.1'
description = 'Vonage Users package'
readme = "README.md"
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
requires-python = ">=3.8"
dependencies = [
"vonage-http-client>=1.3.0",
"vonage-utils>=1.1.0",
"pydantic>=2.6.1",
"vonage-http-client>=1.3.1",
"vonage-utils>=1.1.1",
"pydantic>=2.7.1",
]
classifiers = [
"Programming Language :: Python",
Expand Down
3 changes: 3 additions & 0 deletions verify/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.1.1
- Update minimum dependency version

# 1.1.0
- Add `http_client` property

Expand Down
8 changes: 4 additions & 4 deletions verify/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[project]
name = 'vonage-verify'
version = '1.1.0'
version = '1.1.1'
description = 'Vonage verify package'
readme = "README.md"
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
requires-python = ">=3.8"
dependencies = [
"vonage-http-client>=1.3.0",
"vonage-utils>=1.1.0",
"pydantic>=2.6.1",
"vonage-http-client>=1.3.1",
"vonage-utils>=1.1.1",
"pydantic>=2.7.1",
]
classifiers = [
"Programming Language :: Python",
Expand Down
3 changes: 3 additions & 0 deletions verify_v2/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.1.1
- Update minimum dependency version

# 1.1.0
- Add `http_client` property

Expand Down
8 changes: 4 additions & 4 deletions verify_v2/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[project]
name = 'vonage-verify-v2'
version = '1.1.0'
version = '1.1.1'
description = 'Vonage verify v2 package'
readme = "README.md"
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
requires-python = ">=3.8"
dependencies = [
"vonage-http-client>=1.3.0",
"vonage-utils>=1.1.0",
"pydantic>=2.6.1",
"vonage-http-client>=1.3.1",
"vonage-utils>=1.1.1",
"pydantic>=2.7.1",
]
classifiers = [
"Programming Language :: Python",
Expand Down
3 changes: 3 additions & 0 deletions voice/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.0.2
- Update minimum dependency version

# 1.0.1
- Initial upload

Expand Down
8 changes: 4 additions & 4 deletions voice/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[project]
name = 'vonage-voice'
version = '1.0.1'
version = '1.0.2'
description = 'Vonage voice package'
readme = "README.md"
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
requires-python = ">=3.8"
dependencies = [
"vonage-http-client>=1.3.0",
"vonage-utils>=1.1.0",
"pydantic>=2.6.1",
"vonage-http-client>=1.3.1",
"vonage-utils>=1.1.1",
"pydantic>=2.7.1",
]
classifiers = [
"Programming Language :: Python",
Expand Down
1 change: 1 addition & 0 deletions vonage/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 3.99.0a8
- Add support for the [Vonage Number Insight API](https://developer.vonage.com/en/number-insight/overview).
- Update minimum dependency version

# 3.99.0a7
- Add support for the [Vonage Voice API](https://developer.vonage.com/en/voice/voice-api/overview).
Expand Down
18 changes: 9 additions & 9 deletions vonage/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ readme = "README.md"
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
requires-python = ">=3.8"
dependencies = [
"vonage-utils>=1.1.0",
"vonage-http-client>=1.3.0",
"vonage-messages>=1.1.0",
"vonage-utils>=1.1.1",
"vonage-http-client>=1.3.1",
"vonage-messages>=1.1.1",
"vonage-number-insight>=1.0.0",
"vonage-number-insight-v2>=0.1.0b0",
"vonage-sms>=1.1.0",
"vonage-users>=1.1.0",
"vonage-verify>=1.1.0",
"vonage-verify-v2>=1.1.0",
"vonage-voice>=1.0.1",
"vonage-number-insight-v2>=0.1.1b0",
"vonage-sms>=1.1.1",
"vonage-users>=1.1.1",
"vonage-verify>=1.1.1",
"vonage-verify-v2>=1.1.1",
"vonage-voice>=1.0.2",
]
classifiers = [
"Programming Language :: Python",
Expand Down
3 changes: 3 additions & 0 deletions vonage_utils/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.1.0
- Update minimum dependency version

# 1.1.0
- Add `Dtmf` and `SipUri` types
- Add `Link` model
Expand Down
4 changes: 2 additions & 2 deletions vonage_utils/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = 'vonage-utils'
version = '1.1.0'
version = '1.1.1'
description = 'Utils package containing objects for use with Vonage APIs'
readme = "README.md"
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
dependencies = ["typing_extensions>=4.9.0", "pydantic>=2.6.1"]
dependencies = ["typing_extensions>=4.9.0", "pydantic>=2.7.1"]
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python",
Expand Down

0 comments on commit 5f6667d

Please sign in to comment.