pyrobale 0.0.1__py3-none-any.whl → 0.2.2__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.
- {pyrobale-0.0.1.dist-info → pyrobale-0.2.2.dist-info}/METADATA +8 -5
- pyrobale-0.2.2.dist-info/RECORD +5 -0
- pyrobale.py +1 -1
- pyrobale-0.0.1.dist-info/RECORD +0 -5
- {pyrobale-0.0.1.dist-info → pyrobale-0.2.2.dist-info}/WHEEL +0 -0
- {pyrobale-0.0.1.dist-info → pyrobale-0.2.2.dist-info}/licenses/LICENSE +0 -0
@@ -1,7 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pyrobale
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.2.2
|
4
4
|
Summary: A python wrapper for bale api
|
5
|
+
Project-URL: github, https://github.com/pyrobale/pyrobale
|
6
|
+
Project-URL: website, https://pyrobale.github.io
|
5
7
|
Author-email: Ali Safamanesh <darg.q.a.a@gmail.com>
|
6
8
|
License: GNU GENERAL PUBLIC LICENSE
|
7
9
|
Version 3, 29 June 2007
|
@@ -714,7 +716,7 @@ A Python wrapper for the Bale Bot API that makes it easy to build Bale bots.
|
|
714
716
|
## Installation
|
715
717
|
|
716
718
|
|
717
|
-
pip install
|
719
|
+
pip install pyrobale
|
718
720
|
|
719
721
|
|
720
722
|
## Quick Start
|
@@ -799,23 +801,24 @@ def handle_leave(message, chat, user):
|
|
799
801
|
|
800
802
|
|
801
803
|
# Access database
|
804
|
+
```py
|
802
805
|
with bot.database as db:
|
803
|
-
# Store data
|
804
806
|
db.write_key("user_123", {"points": 100})
|
805
807
|
|
806
|
-
# Read data
|
807
808
|
data = db.read_key("user_123")
|
809
|
+
```
|
808
810
|
|
809
811
|
|
810
812
|
## Running Multiple Bots
|
811
813
|
|
812
814
|
|
815
|
+
```py
|
813
816
|
from bale import run_multiple_clients
|
814
817
|
|
815
818
|
bot1 = Client("TOKEN1")
|
816
819
|
bot2 = Client("TOKEN2")
|
817
820
|
|
818
|
-
run_multiple_clients(bot1, bot2)
|
821
|
+
run_multiple_clients(bot1, bot2)```
|
819
822
|
|
820
823
|
|
821
824
|
## License
|
@@ -0,0 +1,5 @@
|
|
1
|
+
pyrobale.py,sha256=ZoCjDDPkiwHc7l0uwhWyRAGl4l3A8-wOennP2sNtWuo,65310
|
2
|
+
pyrobale-0.2.2.dist-info/METADATA,sha256=2rUUjpf7f2rIZLYERhGt84tFZTEiqHQzNTmHKXquZyM,43676
|
3
|
+
pyrobale-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
4
|
+
pyrobale-0.2.2.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
5
|
+
pyrobale-0.2.2.dist-info/RECORD,,
|
pyrobale.py
CHANGED
pyrobale-0.0.1.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
pyrobale.py,sha256=s1ntCyeEMR41aktkH6o-ORWU9mKvEeugFKpHdD2Lq0g,65310
|
2
|
-
pyrobale-0.0.1.dist-info/METADATA,sha256=-PnmtFCBj6zQBK7w13AnlliKR_m5N_nyZuni5LMJ-5o,43630
|
3
|
-
pyrobale-0.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
4
|
-
pyrobale-0.0.1.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
5
|
-
pyrobale-0.0.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|