Skip to main content

New-Tel simple async client based on httpx.

Project description

Async-NewTel

New-Tel simple async client based on httpx.

Installation

pip install async-newtel

Usage

import async_newtel
import os

API_KEY = os.environ.get('API_KEY')
SIGNING_KEY = os.environ.get('SIGNING_KEY')

number = '+1234567890'
code = '1234'
# Send email with context manager

async with async_newtel.AsyncClient(
    api_key=API_KEY,
    signing_key=SIGNING_KEY
) as client:
    response = await client.call(number, code)

# Send email without context manager

client = simple_sendgrid.AsyncClient(api_key=API_KEY, signing_key=SIGNING_KEY)
await client.open()
response = await client.call(number, code)
await client.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

async-newtel-0.0.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

async_newtel-0.0.1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page