Vonage Python SDK
The Vonage Python SDK Package vonage provides a streamlined interface for using Vonage APIs in Python projects. This package includes the Vonage class, which simplifies API interactions.
The Vonage class in this package serves as the main entry point for using Vonage APIs. It abstracts away complexities with authentication, HTTP requests and more.
For full API documentation refer to the Vonage Developer documentation.
Installation
Install the package using pip:
pip install vonage
Usage
from vonage import Vonage, Auth, HttpClientOptions
# Create an Auth instance
auth = Auth(api_key='your_api_key', api_secret='your_api_secret')
# Create HttpClientOptions instance
# (not required unless you want to change options from the defaults)
options = HttpClientOptions(api_host='api.nexmo.com', timeout=30)
# Create a Vonage instance
vonage = Vonage(auth=auth, http_client_options=options)
The Vonage class provides access to various Vonage APIs through its properties. For example, to use methods to call the SMS API:
from vonage_sms import SmsMessage
message = SmsMessage(to='1234567890', from_='Vonage', text='Hello World')
response = client.sms.send(message)
print(response.model_dump_json(exclude_unset=True))
You can also access the underlying HttpClient instance through the http_client property:
user_agent = vonage.http_client.user_agent
Release files for vonage 4.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vonage-4.9.0.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vonage-4.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / vonage-4.9.0.tar.gz
| Download URL | vonage-4.9.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f5d21c2092d73786e1dae5e4c5281ac6d9a1860fa6a10a1018e8748f9006c2c
|
|
BLAKE2b-256 checksum How to use checksums |
26c30c5ce340327d59f6b312770f7caf63833f51b1a58b4db36f22a2364fe554
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.3
|
Release files / vonage-4.9.0-py3-none-any.whl
| Download URL | vonage-4.9.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ec4a0cd1bbbb4af9741583dd616eb4d683627fdad76a3748cde89219f617981
|
|
BLAKE2b-256 checksum How to use checksums |
e62f667853b8cdd3ab12981c94f7e9c985bd2385e6a024c1affb8071e6de62d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.3
|