Skip to main content

An asynchronous Twilio client

Project description

Asynchronous Twilio Client

Tests Status pre-commit.ci status Coverage PyPI version PyPI - Python Version

An asynchronous Twilio client

⚠️ The official Twilio Python Client now natively supports asyncio so this project had been depreciated.

Installation

Using a virtual environment is recommended for installing this package. Once the virtual environment is created and activated install the package with:

pip install twilio-python-async

Useage

When creating a client the twilio account sid and token can either be read from a TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN variables, or passed into the client at creation. Using environment variables is recommended. Examples below will assume the use of environment variables.

Send an SMS message

Messages can be sent by either using a Twilio messaging service sid, or by passing a from_ phone number. The messaging service sid can be read from a TWILIO_MESSAGING_SERVICE_SID environment variable. The examples below assumes the use of the environment variable.

from twilio_async import AsyncClient


async with AsyncClient() as client:
    await client.message_create("My message", "+12068675309")

Retrieve message logs

from twilio_async import AsyncClient


async with AsyncClient() as client:
    response = await client.get_message_logs()

Contributing

Contributions to this project are welcome. If you are interested in contributing please see our contributing guide

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

twilio_python_async-0.2.3.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

twilio_python_async-0.2.3-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file twilio_python_async-0.2.3.tar.gz.

File metadata

  • Download URL: twilio_python_async-0.2.3.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure

File hashes

Hashes for twilio_python_async-0.2.3.tar.gz
Algorithm Hash digest
SHA256 84b0d4777d9f39221be59c0272f6e57ecd242306fb475d5a09af777be19cfcf8
MD5 711689bf4d0e29a8eac1a56e4f8c880c
BLAKE2b-256 5e401a26b9b3167ed7d209a2194a27bf5bee9c9f5ca661f57c6a658fee785275

See more details on using hashes here.

File details

Details for the file twilio_python_async-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for twilio_python_async-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d455c32e3153b3706a89a45bb5d2efe66e8587d4c574465c3e70a0b70e3dc459
MD5 9f255a0a1ee53d24d8a47062a996b195
BLAKE2b-256 df26b4c425700f5e56e5687503990506623f3b83d98bc3fe2e3ddbf6b830f43a

See more details on using hashes here.

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