Rubka 0.1.0__tar.gz → 0.1.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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Rubka
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A Python library for interacting with Rubika Bot API.
5
5
  Home-page: https://github.com/Mahdy-Ahmadi/Rubka
6
6
  Download-URL: https://github.com/Mahdy-Ahmadi/Rubka/archive/refs/tags/v0.1.0.tar.gz
@@ -30,39 +30,39 @@ Dynamic: requires-python
30
30
  Dynamic: summary
31
31
 
32
32
 
33
- # rubibot
33
+ # rubka
34
34
 
35
35
  A Python library for interacting with the Rubika Bot API using the Robot class.
36
36
 
37
37
  ## Overview
38
- rubibot is a powerful and easy-to-use Python SDK designed to simplify building bots for the Rubika platform.
38
+ rubka is a powerful and easy-to-use Python SDK designed to simplify building bots for the Rubika platform.
39
39
  It supports sending messages, editing, polls, locations, contacts, keyboards, and managing bot commands with a clean and modern interface.
40
40
 
41
41
  ## Installation
42
42
 
43
43
  ```bash
44
- pip install rubibot
44
+ pip install rubka
45
45
  ```
46
46
 
47
47
  Or install from source:
48
48
 
49
49
  ```bash
50
- git clone https://github.com/Mahdy-Ahmadi/rubibot.git
51
- cd rubibot
50
+ git clone https://github.com/Mahdy-Ahmadi/rubka.git
51
+ cd rubka
52
52
  pip install .
53
53
  ```
54
54
 
55
55
  ## Quick Start
56
56
 
57
57
  ```python
58
- from rubibot import Robot, on_message
58
+ from rubka import Robot, on_message
59
59
 
60
60
  bot = Robot(token="YOUR_BOT_TOKEN")
61
61
 
62
62
  @on_message
63
63
  def handle_message(bot, chat_id, message_id, text, sender_id):
64
64
  if text == "/start":
65
- bot.send_message(chat_id, "Hello! Welcome to rubibot.")
65
+ bot.send_message(chat_id, "Hello! Welcome to rubka.")
66
66
 
67
67
  updates = bot.get_updates(limit=10)
68
68
  for update in updates.get("updates", []):
@@ -299,7 +299,7 @@ The main class to interact with Rubika Bot API.
299
299
  Usage:
300
300
 
301
301
  ```python
302
- from rubibot import on_message
302
+ from rubka import on_message
303
303
 
304
304
  @on_message
305
305
  def my_handler(bot, chat_id, message_id, text, sender_id):
@@ -1,37 +1,37 @@
1
1
 
2
- # rubibot
2
+ # rubka
3
3
 
4
4
  A Python library for interacting with the Rubika Bot API using the Robot class.
5
5
 
6
6
  ## Overview
7
- rubibot is a powerful and easy-to-use Python SDK designed to simplify building bots for the Rubika platform.
7
+ rubka is a powerful and easy-to-use Python SDK designed to simplify building bots for the Rubika platform.
8
8
  It supports sending messages, editing, polls, locations, contacts, keyboards, and managing bot commands with a clean and modern interface.
9
9
 
10
10
  ## Installation
11
11
 
12
12
  ```bash
13
- pip install rubibot
13
+ pip install rubka
14
14
  ```
15
15
 
16
16
  Or install from source:
17
17
 
18
18
  ```bash
19
- git clone https://github.com/Mahdy-Ahmadi/rubibot.git
20
- cd rubibot
19
+ git clone https://github.com/Mahdy-Ahmadi/rubka.git
20
+ cd rubka
21
21
  pip install .
22
22
  ```
23
23
 
24
24
  ## Quick Start
25
25
 
26
26
  ```python
27
- from rubibot import Robot, on_message
27
+ from rubka import Robot, on_message
28
28
 
29
29
  bot = Robot(token="YOUR_BOT_TOKEN")
30
30
 
31
31
  @on_message
32
32
  def handle_message(bot, chat_id, message_id, text, sender_id):
33
33
  if text == "/start":
34
- bot.send_message(chat_id, "Hello! Welcome to rubibot.")
34
+ bot.send_message(chat_id, "Hello! Welcome to rubka.")
35
35
 
36
36
  updates = bot.get_updates(limit=10)
37
37
  for update in updates.get("updates", []):
@@ -268,7 +268,7 @@ The main class to interact with Rubika Bot API.
268
268
  Usage:
269
269
 
270
270
  ```python
271
- from rubibot import on_message
271
+ from rubka import on_message
272
272
 
273
273
  @on_message
274
274
  def my_handler(bot, chat_id, message_id, text, sender_id):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Rubka
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A Python library for interacting with Rubika Bot API.
5
5
  Home-page: https://github.com/Mahdy-Ahmadi/Rubka
6
6
  Download-URL: https://github.com/Mahdy-Ahmadi/Rubka/archive/refs/tags/v0.1.0.tar.gz
@@ -30,39 +30,39 @@ Dynamic: requires-python
30
30
  Dynamic: summary
31
31
 
32
32
 
33
- # rubibot
33
+ # rubka
34
34
 
35
35
  A Python library for interacting with the Rubika Bot API using the Robot class.
36
36
 
37
37
  ## Overview
38
- rubibot is a powerful and easy-to-use Python SDK designed to simplify building bots for the Rubika platform.
38
+ rubka is a powerful and easy-to-use Python SDK designed to simplify building bots for the Rubika platform.
39
39
  It supports sending messages, editing, polls, locations, contacts, keyboards, and managing bot commands with a clean and modern interface.
40
40
 
41
41
  ## Installation
42
42
 
43
43
  ```bash
44
- pip install rubibot
44
+ pip install rubka
45
45
  ```
46
46
 
47
47
  Or install from source:
48
48
 
49
49
  ```bash
50
- git clone https://github.com/Mahdy-Ahmadi/rubibot.git
51
- cd rubibot
50
+ git clone https://github.com/Mahdy-Ahmadi/rubka.git
51
+ cd rubka
52
52
  pip install .
53
53
  ```
54
54
 
55
55
  ## Quick Start
56
56
 
57
57
  ```python
58
- from rubibot import Robot, on_message
58
+ from rubka import Robot, on_message
59
59
 
60
60
  bot = Robot(token="YOUR_BOT_TOKEN")
61
61
 
62
62
  @on_message
63
63
  def handle_message(bot, chat_id, message_id, text, sender_id):
64
64
  if text == "/start":
65
- bot.send_message(chat_id, "Hello! Welcome to rubibot.")
65
+ bot.send_message(chat_id, "Hello! Welcome to rubka.")
66
66
 
67
67
  updates = bot.get_updates(limit=10)
68
68
  for update in updates.get("updates", []):
@@ -299,7 +299,7 @@ The main class to interact with Rubika Bot API.
299
299
  Usage:
300
300
 
301
301
  ```python
302
- from rubibot import on_message
302
+ from rubka import on_message
303
303
 
304
304
  @on_message
305
305
  def my_handler(bot, chat_id, message_id, text, sender_id):
@@ -9,6 +9,7 @@ rubka/__init__.py
9
9
  rubka/api.py
10
10
  rubka/config.py
11
11
  rubka/decorators.py
12
+ rubka/exceptions.py
12
13
  rubka/keyboards.py
13
14
  rubka/logger.py
14
15
  rubka/utils.py
@@ -0,0 +1,4 @@
1
+ class APIRequestError(Exception):
2
+ """Raised when an API request fails."""
3
+ raise Exception
4
+ pass
@@ -8,7 +8,7 @@ except FileNotFoundError:
8
8
 
9
9
  setup(
10
10
  name='Rubka',
11
- version='0.1.0',
11
+ version='0.1.2',
12
12
  description='A Python library for interacting with Rubika Bot API.',
13
13
  long_description=long_description,
14
14
  long_description_content_type='text/markdown',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes