diff --git a/README.md b/README.md index e5946fc..3a8b6c1 100644 --- a/README.md +++ b/README.md @@ -48,3 +48,18 @@ eskiz = EskizSMS('email', 'password', save_token=True, env_file_path='.env') # Don't forget to add env file to .gitignore! response = eskiz.send_sms('998901234567', message='message') ``` +### Async usage + +```python +import asyncio + +from eskiz_sms.async_ import EskizSMS + + +async def main(): + eskiz = EskizSMS('email', 'password') + response = await eskiz.send_sms('998901234567', 'Hello, World!') + + +asyncio.run(main()) +``` \ No newline at end of file diff --git a/eskiz_sms/__init__.py b/eskiz_sms/__init__.py index 54f5c3b..54fcd57 100644 --- a/eskiz_sms/__init__.py +++ b/eskiz_sms/__init__.py @@ -2,7 +2,7 @@ from . import types from .eskiz import EskizSMS -__version__ = '0.1.18' +__version__ = '0.2.0' __all__ = [ 'EskizSMS', diff --git a/pyproject.toml b/pyproject.toml index c6932f5..8f5fb30 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "eskiz-sms" -version = "0.1.18" +version = "0.2.0" description = "Package for eskiz.uz/sms" homepage = "https://github.com/malikovss/eskiz-sms" authors = ["Malikov "]