Skip to main content

aio-kavenegar

Kavenegar RESTful API Document

If you need to future information about API document Please visit RESTful Document

Caution !

This repository IS NOT AN OFFICIAL KAVENEGAR CLIENT!

This project is not compatible with the official package.

The original repository can be found Here.

Installation

You can install our SDK from pypi through below command

pip install aio-kavenegar

You can download the Python SDK Here too

Then ,You need to make an account on Kavenegar from Here

After that you just need to pick API-KEY up from My Account section.

Anyway there is good tutorial about Pull request

Usage

Well, There is an example to Send SMS by Python below. timeout parameter is optional in AIOKavenegarAPI constructor, default value is set to 10 seconds.

Send

#!/usr/bin/env python
import asyncio
from aio_kavenegar import AIOKavenegarAPI, APIException, HTTPException


async def main():
    try:
        api = AIOKavenegarAPI("Your APIKey", timeout=20)
        params = {
            "sender": "",  # optional
            "receptor": "",  # multiple mobile number, split by comma
            "message": "",
        }
        response = await api.sms_send(params)
        print(response)
    except APIException as e:
        print(e)
    except HTTPException as e:
        print(e)


if __name__ == "__main__":
    asyncio.run(main())

OTP

#!/usr/bin/env python
import asyncio
from aio_kavenegar import AIOKavenegarAPI, APIException, HTTPException


async def main():
    try:
        api = AIOKavenegarAPI("Your APIKey", timeout=20)
        params = {
            "receptor": "",
            "template": "",
            "token": "",
            "type": "sms",  # sms vs call
        }
        response = await api.verify_lookup(params)
        print(response)
    except APIException as e:
        print(e)
    except HTTPException as e:
        print(e)


if __name__ == "__main__":
    asyncio.run(main())

Send Bulk

#!/usr/bin/env python
import asyncio
from aio_kavenegar import AIOKavenegarAPI, APIException, HTTPException


async def main():
    try:
        api = AIOKavenegarAPI("Your APIKey", timeout=20)
        params = {
            "sender": '["",""]',  # array of string as json
            "receptor": '["",""]',  # array of string as json
            "message": '["",""]',  # array of string as json
        }
        response = await api.sms_sendarray(params)
        print(response)
    except APIException as e:
        print(e)
    except HTTPException as e:
        print(e)


if __name__ == "__main__":
    asyncio.run(main())

Contribution

Bug fixes, docs, and enhancements welcome! Please let us know support@kavenegar.com


توجه !

این یک نسخه رسمی کلاینت کاوه نگار نیست!

این پروژه با پکیج رسمی کاوه نگار سازگار نیست.

کلاینت رسمی را می توانید در اینجا مشاهده کنید.

راهنما

معرفی سرویس کاوه نگار

کاوه نگار یک وب سرویس ارسال و دریافت پیامک و تماس صوتی است که به راحتی میتوانید از آن استفاده نمایید.

ساخت حساب کاربری

اگر در وب سرویس کاوه نگار عضو نیستید میتوانید از لینک عضویت ثبت نام و اکانت آزمایشی برای تست API دریافت نمایید.

مستندات

برای مشاهده اطلاعات کامل مستندات وب سرویس پیامک به صفحه مستندات وب سرویس مراجعه نمایید.

راهنمای فارسی

در صورتی که مایل هستید راهنمای فارسی کیت توسعه کاوه نگار را مطالعه کنید به صفحه کد ارسال پیامک مراجعه نمایید.

اطالاعات بیشتر

برای مطالعه بیشتر به صفحه معرفی وب سرویس اس ام اس کاوه نگار مراجعه نمایید .

اگر در استفاده از کیت های سرویس کاوه نگار مشکلی یا پیشنهادی داشتید ما را با یک Pull Request یا ارسال ایمیل به support@kavenegar.com خوشحال کنید.

http://kavenegar.com

http://kavenegar.com

Metadata

Release files for aio-kavenegar 3.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aio-kavenegar 3.1.1
File Size Uploaded Provenance Actions
aio_kavenegar-3.1.1.tar.gz 6.5 kB Without provenance Details for aio_kavenegar-3.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aio-kavenegar 3.1.1
File Interpreter ABI Platform Actions
aio_kavenegar-3.1.1-py3-none-any.whl Python 3 none any Details for aio_kavenegar-3.1.1-py3-none-any.whl

Total release size: 13.8 kB

Release files / aio_kavenegar-3.1.1.tar.gz

Download URL aio_kavenegar-3.1.1.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d533a8516f740f67e551f576d8f3bd924611a3791460ac119380ed06ff073759
BLAKE2b-256 checksum
How to use checksums
c6c82accfce9dd1a74611d9acde2121914fc952008ce6ab98428d96ed8dfabdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / aio_kavenegar-3.1.1-py3-none-any.whl

Download URL aio_kavenegar-3.1.1-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56794e126a2bf3e855f0d7dedb8132a8bbe4ef71dacdd92908a93149993554d2
BLAKE2b-256 checksum
How to use checksums
1cdb3a07b9e7dfa4e55f8f51b99b646a07117cc38e0a38fa4a6558360f2a9f2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for aio-kavenegar 3.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page