pyrobale 0.2.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.
@@ -1,7 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyrobale
3
- Version: 0.2.1
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
@@ -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
@@ -5,7 +5,7 @@ import sqlite3
5
5
  import inspect
6
6
  import asyncio
7
7
 
8
- __version__ = '0.2.1'
8
+ __version__ = '0.2.2'
9
9
 
10
10
  class DataBase:
11
11
  def __init__(self, name):
@@ -1,5 +0,0 @@
1
- pyrobale.py,sha256=f9v0SXD4SOFrnTl02o5PpX-QUnQSKzScw2mlSve5uGE,65310
2
- pyrobale-0.2.1.dist-info/METADATA,sha256=RPazQ_LK5G0QdcoKb1u0OdThBWkNn3UQSEfFZLbfgdA,43583
3
- pyrobale-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4
- pyrobale-0.2.1.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
5
- pyrobale-0.2.1.dist-info/RECORD,,