Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Vonage Network API Python SDK

The Vonage Network API Python SDK Package vonage-network provides a streamlined interface for using Vonage APIs in Python projects. This package includes the VonageNetwork class, which simplifies API interactions.

The VonageNetwork class in this package serves as an entry point for using Vonage Network APIs. It abstracts away complexities with authentication, HTTP requests and more.

For full API documentation refer to the Vonage Developer documentation.

Please note this package is in beta and could be subject to change or removal.

Installation

Install the package using pip:

pip install vonage-network

Usage

from vonage_network import VonageNetwork, 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 network client instance
vonage_network = VonageNetwork(auth=auth, http_client_options=options)

The VonageNetwork class provides access to various Vonage Network APIs through its properties. For example, to call the Network Sim Swap API:

from vonage_network_sim_swap import SwapStatus
swap_status: SwapStatus = vonage_network.sim_swap.check(phone_number='MY_NUMBER')
print(swap_status.swapped)

You can also access the underlying HttpClient instance through the http_client property:

user_agent = vonage_network.http_client.user_agent

Metadata

Release files for vonage-network 0.1.1b0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vonage-network 0.1.1b0
File Size Uploaded
vonage_network-0.1.1b0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vonage-network 0.1.1b0
File Interpreter ABI Platform
vonage_network-0.1.1b0-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / vonage_network-0.1.1b0.tar.gz

Download URL vonage_network-0.1.1b0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
74573e1f7820c1ef7d6a4efa47960c4fdbad7dee14c77e618f4af2ef9f544ace
BLAKE2b-256 checksum
How to use checksums
7922825abe1f700b1b373cd5b8ad6892ee1aa595a09cd5ccafc7205a08838222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / vonage_network-0.1.1b0-py3-none-any.whl

Download URL vonage_network-0.1.1b0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2e9a2e44081ccddf56361dfe2c5eb9b497d017ba704275fee488bb971d6efda
BLAKE2b-256 checksum
How to use checksums
a4e27625c65e9ce4b7948e7574255571351201bb83a04bfcf9c33146e26362de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.1.1b0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page