async-newtel-0.0.1
توضیحات
New-Tel simple async client based on httpx.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | async-newtel-0.0.1 |
| نام | async-newtel |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Saltymakov Timofey |
| ایمیل نویسنده | saltytimofey@gmail.com |
| آدرس صفحه اصلی | https://github.com/sensodevices/async-newtel |
| آدرس اینترنتی | https://pypi.org/project/async-newtel/ |
| مجوز | MIT |
# Async-NewTel
New-Tel simple async client based on httpx.
# Installation
```bash
pip install async-newtel
```
# Usage
```python
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()
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.21,<0.22 | httpx |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl async-newtel-0.0.1:
pip install async-newtel-0.0.1.whl
نصب پکیج tar.gz async-newtel-0.0.1:
pip install async-newtel-0.0.1.tar.gz