pyrobale 0.0.1__tar.gz → 0.2.2__tar.gz

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.0.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
@@ -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 git+https://github.com/yourusername/bale-bot-python.git
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
@@ -28,7 +28,7 @@ A Python wrapper for the Bale Bot API that makes it easy to build Bale bots.
28
28
  ## Installation
29
29
 
30
30
 
31
- pip install git+https://github.com/yourusername/bale-bot-python.git
31
+ pip install pyrobale
32
32
 
33
33
 
34
34
  ## Quick Start
@@ -113,23 +113,24 @@ def handle_leave(message, chat, user):
113
113
 
114
114
 
115
115
  # Access database
116
+ ```py
116
117
  with bot.database as db:
117
- # Store data
118
118
  db.write_key("user_123", {"points": 100})
119
119
 
120
- # Read data
121
120
  data = db.read_key("user_123")
121
+ ```
122
122
 
123
123
 
124
124
  ## Running Multiple Bots
125
125
 
126
126
 
127
+ ```py
127
128
  from bale import run_multiple_clients
128
129
 
129
130
  bot1 = Client("TOKEN1")
130
131
  bot2 = Client("TOKEN2")
131
132
 
132
- run_multiple_clients(bot1, bot2)
133
+ run_multiple_clients(bot1, bot2)```
133
134
 
134
135
 
135
136
  ## License
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyrobale"
3
- version = "0.0.1"
3
+ version = "0.2.2"
4
4
  authors = [
5
5
  { name = "Ali Safamanesh", email = "darg.q.a.a@gmail.com" },
6
6
  ]
@@ -14,6 +14,10 @@ classifiers = [
14
14
  ]
15
15
  license = { file = "LICENSE" }
16
16
 
17
+ [project.urls]
18
+ github = "https://github.com/pyrobale/pyrobale"
19
+ website = "https://pyrobale.github.io"
20
+
17
21
  [build-system]
18
22
  requires = ["hatchling"]
19
23
  build-backend = "hatchling.build"
@@ -5,7 +5,7 @@ import sqlite3
5
5
  import inspect
6
6
  import asyncio
7
7
 
8
- __version__ = '0.1.0'
8
+ __version__ = '0.2.2'
9
9
 
10
10
  class DataBase:
11
11
  def __init__(self, name):
File without changes