twilio-python-async


Nametwilio-python-async JSON
Version 0.2.3 PyPI version JSON
download
home_pagehttps://github.com/sanders41/twilio-python-async
SummaryAn asynchronous Twilio client
upload_time2023-09-06 20:11:47
maintainer
docs_urlNone
authorPaul Sanders
requires_python>=3.8,<4.0
licenseMIT
keywords twilio async python sms messaging
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Asynchronous Twilio Client

[![Tests Status](https://github.com/sanders41/twilio-python-async/workflows/Testing/badge.svg?branch=main&event=push)](https://github.com/sanders41/twilio-python-async/actions?query=workflow%3ATesting+branch%3Amain+event%3Apush)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/sanders41/twilio-python-async/main.svg)](https://results.pre-commit.ci/latest/github/sanders41/twilio-python-async/main)
[![Coverage](https://codecov.io/github/sanders41/twilio-python-async/coverage.svg?branch=main)](https://codecov.io/gh/sanders41/twilio-python-async)
[![PyPI version](https://badge.fury.io/py/twilio-python-async.svg)](https://badge.fury.io/py/twilio-python-async)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/twilio-python-async?color=5cc141)](https://github.com/sanders41/twilio-python-async)

An asynchronous [Twilio](https://www.twilio.com/) client

⚠️ The official [Twilio Python Client](https://github.com/twilio/twilio-python) 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:

```sh
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.

```py
from twilio_async import AsyncClient


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

### Retrieve message logs

```py
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](CONTRIBUTING.md)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sanders41/twilio-python-async",
    "name": "twilio-python-async",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "twilio,async,python,sms,messaging",
    "author": "Paul Sanders",
    "author_email": "psanders1@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/5e/40/1a26b9b3167ed7d209a2194a27bf5bee9c9f5ca661f57c6a658fee785275/twilio_python_async-0.2.3.tar.gz",
    "platform": null,
    "description": "# Asynchronous Twilio Client\n\n[![Tests Status](https://github.com/sanders41/twilio-python-async/workflows/Testing/badge.svg?branch=main&event=push)](https://github.com/sanders41/twilio-python-async/actions?query=workflow%3ATesting+branch%3Amain+event%3Apush)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/sanders41/twilio-python-async/main.svg)](https://results.pre-commit.ci/latest/github/sanders41/twilio-python-async/main)\n[![Coverage](https://codecov.io/github/sanders41/twilio-python-async/coverage.svg?branch=main)](https://codecov.io/gh/sanders41/twilio-python-async)\n[![PyPI version](https://badge.fury.io/py/twilio-python-async.svg)](https://badge.fury.io/py/twilio-python-async)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/twilio-python-async?color=5cc141)](https://github.com/sanders41/twilio-python-async)\n\nAn asynchronous [Twilio](https://www.twilio.com/) client\n\n\u26a0\ufe0f The official [Twilio Python Client](https://github.com/twilio/twilio-python) now natively supports\nasyncio so this project had been depreciated.\n\n## Installation\n\nUsing a virtual environment is recommended for installing this package. Once the virtual environment is created and activated install the package with:\n\n```sh\npip install twilio-python-async\n```\n\n## Useage\n\nWhen creating a client the twilio account sid and token can either be read from a `TWILIO_ACCOUNT_SID`\nand `TWILIO_AUTH_TOKEN` variables, or passed into the client at creation. Using environment variables\nis recommended. Examples below will assume the use of environment variables.\n\n### Send an SMS message\n\nMessages can be sent by either using a Twilio messaging service sid, or by passing a `from_` phone\nnumber. The messaging service sid can be read from a `TWILIO_MESSAGING_SERVICE_SID` environment\nvariable. The examples below assumes the use of the environment variable.\n\n```py\nfrom twilio_async import AsyncClient\n\n\nasync with AsyncClient() as client:\n    await client.message_create(\"My message\", \"+12068675309\")\n```\n\n### Retrieve message logs\n\n```py\nfrom twilio_async import AsyncClient\n\n\nasync with AsyncClient() as client:\n    response = await client.get_message_logs()\n```\n\n## Contributing\n\nContributions to this project are welcome. If you are interested in contributing please see our [contributing guide](CONTRIBUTING.md)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An asynchronous Twilio client",
    "version": "0.2.3",
    "project_urls": {
        "Documentation": "https://github.com/sanders41/twilio-python-async",
        "Homepage": "https://github.com/sanders41/twilio-python-async",
        "Repository": "https://github.com/sanders41/twilio-python-async"
    },
    "split_keywords": [
        "twilio",
        "async",
        "python",
        "sms",
        "messaging"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df26b4c425700f5e56e5687503990506623f3b83d98bc3fe2e3ddbf6b830f43a",
                "md5": "9f255a0a1ee53d24d8a47062a996b195",
                "sha256": "d455c32e3153b3706a89a45bb5d2efe66e8587d4c574465c3e70a0b70e3dc459"
            },
            "downloads": -1,
            "filename": "twilio_python_async-0.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9f255a0a1ee53d24d8a47062a996b195",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 5925,
            "upload_time": "2023-09-06T20:11:44",
            "upload_time_iso_8601": "2023-09-06T20:11:44.772443Z",
            "url": "https://files.pythonhosted.org/packages/df/26/b4c425700f5e56e5687503990506623f3b83d98bc3fe2e3ddbf6b830f43a/twilio_python_async-0.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5e401a26b9b3167ed7d209a2194a27bf5bee9c9f5ca661f57c6a658fee785275",
                "md5": "711689bf4d0e29a8eac1a56e4f8c880c",
                "sha256": "84b0d4777d9f39221be59c0272f6e57ecd242306fb475d5a09af777be19cfcf8"
            },
            "downloads": -1,
            "filename": "twilio_python_async-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "711689bf4d0e29a8eac1a56e4f8c880c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 5100,
            "upload_time": "2023-09-06T20:11:47",
            "upload_time_iso_8601": "2023-09-06T20:11:47.347542Z",
            "url": "https://files.pythonhosted.org/packages/5e/40/1a26b9b3167ed7d209a2194a27bf5bee9c9f5ca661f57c6a658fee785275/twilio_python_async-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-06 20:11:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sanders41",
    "github_project": "twilio-python-async",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "twilio-python-async"
}
        
Elapsed time: 0.14182s