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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file async-newtel-0.0.1.tar.gz.

File metadata

  • Download URL: async-newtel-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for async-newtel-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7be75642ae33c5058484b325abbfa8cce93711c6f0cc689c88bb29328b23b1f3
MD5 459fcde83906995d03de53191531baa6
BLAKE2b-256 ee8adf564f5ce30d67835a15f430b5532c90ae12e10438d708959754d45accf1

See more details on using hashes here.

File details

Details for the file async_newtel-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: async_newtel-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for async_newtel-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9382465bc9e40429b2248d5de86dcc56d8811a8743c77f504e2761214f56026
MD5 ca9b8202adc041f1513cf04489a4a6e6
BLAKE2b-256 a8b726939a46fb4fa98d74fec612505a24682257843b1736b3c128bd4299427b

See more details on using hashes here.

Supported by

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