pysoroush 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pysoroush/__init__.py +30 -0
- pysoroush/account/__init__.py +15 -0
- pysoroush/account/async_client.py +696 -0
- pysoroush/account/client.py +162 -0
- pysoroush/account/exceptions.py +15 -0
- pysoroush/bot/__init__.py +21 -0
- pysoroush/bot/async_bot.py +111 -0
- pysoroush/bot/async_client.py +350 -0
- pysoroush/bot/base_client.py +105 -0
- pysoroush/bot/bot.py +112 -0
- pysoroush/bot/client.py +331 -0
- pysoroush/bot/constants.py +58 -0
- pysoroush/bot/exceptions.py +220 -0
- pysoroush/bot/filters/__init__.py +13 -0
- pysoroush/bot/filters/filters.py +124 -0
- pysoroush/bot/fsm/__init__.py +7 -0
- pysoroush/bot/fsm/memory.py +62 -0
- pysoroush/bot/types/__init__.py +41 -0
- pysoroush/bot/types/_base.py +109 -0
- pysoroush/bot/types/chat.py +43 -0
- pysoroush/bot/types/commands.py +32 -0
- pysoroush/bot/types/file.py +18 -0
- pysoroush/bot/types/input_file.py +55 -0
- pysoroush/bot/types/input_media.py +59 -0
- pysoroush/bot/types/keyboard.py +122 -0
- pysoroush/bot/types/media.py +125 -0
- pysoroush/bot/types/message.py +90 -0
- pysoroush/bot/types/update.py +63 -0
- pysoroush/bot/types/user.py +30 -0
- pysoroush/bot/webapp/__init__.py +7 -0
- pysoroush/bot/webapp/validator.py +56 -0
- pysoroush-0.1.0.dist-info/METADATA +199 -0
- pysoroush-0.1.0.dist-info/RECORD +36 -0
- pysoroush-0.1.0.dist-info/WHEEL +5 -0
- pysoroush-0.1.0.dist-info/licenses/LICENSE +22 -0
- pysoroush-0.1.0.dist-info/top_level.txt +1 -0
pysoroush/__init__.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""
|
|
2
|
+
PySoroush - A modern Python library for the Soroush Plus messenger.
|
|
3
|
+
|
|
4
|
+
This package contains two independent sub-packages:
|
|
5
|
+
|
|
6
|
+
* ``pysoroush.bot`` - Bot API client (sync & async).
|
|
7
|
+
* ``pysoroush.account`` - User account (Self) API client (async).
|
|
8
|
+
|
|
9
|
+
Example usage for bots::
|
|
10
|
+
|
|
11
|
+
from pysoroush.bot import Bot
|
|
12
|
+
|
|
13
|
+
Example usage for accounts::
|
|
14
|
+
|
|
15
|
+
from pysoroush.account import AsyncClient
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
__version__ = "0.1.0"
|
|
19
|
+
__author__ = "Ali VEX"
|
|
20
|
+
__author_email__ = "lyrdaadhrpyk802@gmail.com"
|
|
21
|
+
__url__ = "https://github.com/lyrdaadhrpyk802-ux/pysoroush"
|
|
22
|
+
__license__ = "MIT"
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
"__version__",
|
|
26
|
+
"__author__",
|
|
27
|
+
"__author_email__",
|
|
28
|
+
"__url__",
|
|
29
|
+
"__license__",
|
|
30
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""
|
|
2
|
+
pysoroush.account - Soroush Plus User Account (Self) API client.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from .client import Client
|
|
6
|
+
from .async_client import AsyncClient
|
|
7
|
+
from .exceptions import SoroushAccountError, AuthError, PasswordRequiredError
|
|
8
|
+
|
|
9
|
+
__all__ = [
|
|
10
|
+
"Client",
|
|
11
|
+
"AsyncClient",
|
|
12
|
+
"SoroushAccountError",
|
|
13
|
+
"AuthError",
|
|
14
|
+
"PasswordRequiredError",
|
|
15
|
+
]
|