fpx-engine 0.2.0__tar.gz → 0.3.0__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.
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/PKG-INFO +3 -4
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/README.md +2 -3
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/account/subclasses/order.py +1 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/runner/runner.py +2 -1
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/runner/subclasses/router.py +1 -1
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/models/account.py +4 -2
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx_engine.egg-info/PKG-INFO +3 -4
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/pyproject.toml +1 -1
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/LICENSE +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/__init__.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/api/client.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/api/parsers.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/account/account.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/account/subclasses/addons.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/account/subclasses/category.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/account/subclasses/chat.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/account/subclasses/editor.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/account/subclasses/lot.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/account/subclasses/profile.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/account/subclasses/review.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/runner/subclasses/category.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/runner/subclasses/chat.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/runner/subclasses/handler.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/runner/subclasses/order.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/classes/runner/subclasses/review.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/fsm.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/main.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/middlewares/request_engine.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/models/chat.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/models/lots.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx/utils/errors.py +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx_engine.egg-info/SOURCES.txt +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx_engine.egg-info/dependency_links.txt +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx_engine.egg-info/requires.txt +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/fpx_engine.egg-info/top_level.txt +0 -0
- {fpx_engine-0.2.0 → fpx_engine-0.3.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fpx-engine
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Автоматизация работы с FunPay
|
|
5
5
|
Author-email: Be My Code <gettofarmila@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/bymyforge/fpx
|
|
@@ -30,7 +30,7 @@ Dynamic: license-file
|
|
|
30
30
|
<img src="https://img.shields.io/badge/GitHub-181717?style=for-the-badge&logo=github&logoColor=white" alt="GitHub">
|
|
31
31
|
</a>
|
|
32
32
|
<a href="https://t.me/fpx_engine" target="_blank">
|
|
33
|
-
<img src="https://img.shields.io/badge
|
|
33
|
+
<img src="https://img.shields.io/badge/Телеграм_Чат-26A5E4?style=for-the-badge&logo=telegram&logoColor=white" alt="Telegram">
|
|
34
34
|
</a>
|
|
35
35
|
<a href="https://pypi.org/project/fpx-engine/" target="_blank">
|
|
36
36
|
<img src="https://img.shields.io/badge/PyPI-3775A9?style=for-the-badge&logo=pypi&logoColor=white" alt="PyPI">
|
|
@@ -73,8 +73,7 @@ async def main():
|
|
|
73
73
|
# отвечаем на сообщение
|
|
74
74
|
await message.answer('Привет')
|
|
75
75
|
#запускаем приём событий
|
|
76
|
-
await fp.runner.
|
|
77
|
-
await fp.runner.idle()
|
|
76
|
+
await fp.runner.start_polling(3, is_background=True)
|
|
78
77
|
|
|
79
78
|
if __name__ == '__main__':
|
|
80
79
|
asyncio.run(main())
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<img src="https://img.shields.io/badge/GitHub-181717?style=for-the-badge&logo=github&logoColor=white" alt="GitHub">
|
|
15
15
|
</a>
|
|
16
16
|
<a href="https://t.me/fpx_engine" target="_blank">
|
|
17
|
-
<img src="https://img.shields.io/badge
|
|
17
|
+
<img src="https://img.shields.io/badge/Телеграм_Чат-26A5E4?style=for-the-badge&logo=telegram&logoColor=white" alt="Telegram">
|
|
18
18
|
</a>
|
|
19
19
|
<a href="https://pypi.org/project/fpx-engine/" target="_blank">
|
|
20
20
|
<img src="https://img.shields.io/badge/PyPI-3775A9?style=for-the-badge&logo=pypi&logoColor=white" alt="PyPI">
|
|
@@ -57,8 +57,7 @@ async def main():
|
|
|
57
57
|
# отвечаем на сообщение
|
|
58
58
|
await message.answer('Привет')
|
|
59
59
|
#запускаем приём событий
|
|
60
|
-
await fp.runner.
|
|
61
|
-
await fp.runner.idle()
|
|
60
|
+
await fp.runner.start_polling(3, is_background=True)
|
|
62
61
|
|
|
63
62
|
if __name__ == '__main__':
|
|
64
63
|
asyncio.run(main())
|
|
@@ -16,6 +16,7 @@ class OrderManager:
|
|
|
16
16
|
- status (str): Статус заказа.
|
|
17
17
|
- review (dict): Словарь с данными отзыва, который оставили к заказу.
|
|
18
18
|
- description (str): Строка с подробным описанием заказа
|
|
19
|
+
- chat_id (str): ID чата
|
|
19
20
|
'''
|
|
20
21
|
html = await self.account.client.get_order_info(order_id)
|
|
21
22
|
data = self.account.parser.parse_order_page(html)
|
|
@@ -53,7 +53,7 @@ class Runner:
|
|
|
53
53
|
except Exception as e:
|
|
54
54
|
raise fpx_err.FpxCriticalRunnerError(message=str(e))
|
|
55
55
|
|
|
56
|
-
async def
|
|
56
|
+
async def start_polling(self, timer=3, is_background:bool=True, watch_lots:list=None, watch_chips:list=None):
|
|
57
57
|
'''
|
|
58
58
|
Запускает поиск новых событий.
|
|
59
59
|
|
|
@@ -65,6 +65,7 @@ class Runner:
|
|
|
65
65
|
'''
|
|
66
66
|
if is_background:
|
|
67
67
|
asyncio.create_task(self._run_loop(timer, watch_lots, watch_chips))
|
|
68
|
+
await self.idle()
|
|
68
69
|
else:
|
|
69
70
|
await self._run_loop(timer, watch_lots, watch_chips)
|
|
70
71
|
|
|
@@ -22,7 +22,7 @@ class Router:
|
|
|
22
22
|
'''Декоратор отслеживает новые сообщения.
|
|
23
23
|
|
|
24
24
|
Args:
|
|
25
|
-
- text (str):
|
|
25
|
+
- text (str): Текст на который начинается сообщение, по которому фильтруется отображение новых сообщений.
|
|
26
26
|
- mapping (dict): Словарь 'ключ': 'значение' для упрощённых ответов, вводи 'Привет' и 'Привет, работаю' и теперь скрипт будет всегда отвечать за тебя Привет, работаю когда тебе пишут привет. Вводи сколько угодно маппинга
|
|
27
27
|
|
|
28
28
|
Returns:
|
|
@@ -32,7 +32,8 @@ class CurReview:
|
|
|
32
32
|
author=self.author,
|
|
33
33
|
order_id=self.order_id,
|
|
34
34
|
order_name=self.order.name,
|
|
35
|
-
order_time=self.order.order_time
|
|
35
|
+
order_time=self.order.order_time,
|
|
36
|
+
stars=self.stars
|
|
36
37
|
)
|
|
37
38
|
return await self._client._account.review.review_answer(self.order_id, formatted_reply)
|
|
38
39
|
|
|
@@ -44,7 +45,8 @@ class CurReview:
|
|
|
44
45
|
author=self.author,
|
|
45
46
|
order_id=self.order_id,
|
|
46
47
|
order_name=self.order.name,
|
|
47
|
-
order_time=self.order.order_time
|
|
48
|
+
order_time=self.order.order_time,
|
|
49
|
+
stars=self.stars
|
|
48
50
|
)
|
|
49
51
|
#добавить ещё ревью тайм
|
|
50
52
|
return await self._client._account.chat.send_message(self.order.chat_node_id, formatter_reply)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fpx-engine
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Автоматизация работы с FunPay
|
|
5
5
|
Author-email: Be My Code <gettofarmila@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/bymyforge/fpx
|
|
@@ -30,7 +30,7 @@ Dynamic: license-file
|
|
|
30
30
|
<img src="https://img.shields.io/badge/GitHub-181717?style=for-the-badge&logo=github&logoColor=white" alt="GitHub">
|
|
31
31
|
</a>
|
|
32
32
|
<a href="https://t.me/fpx_engine" target="_blank">
|
|
33
|
-
<img src="https://img.shields.io/badge
|
|
33
|
+
<img src="https://img.shields.io/badge/Телеграм_Чат-26A5E4?style=for-the-badge&logo=telegram&logoColor=white" alt="Telegram">
|
|
34
34
|
</a>
|
|
35
35
|
<a href="https://pypi.org/project/fpx-engine/" target="_blank">
|
|
36
36
|
<img src="https://img.shields.io/badge/PyPI-3775A9?style=for-the-badge&logo=pypi&logoColor=white" alt="PyPI">
|
|
@@ -73,8 +73,7 @@ async def main():
|
|
|
73
73
|
# отвечаем на сообщение
|
|
74
74
|
await message.answer('Привет')
|
|
75
75
|
#запускаем приём событий
|
|
76
|
-
await fp.runner.
|
|
77
|
-
await fp.runner.idle()
|
|
76
|
+
await fp.runner.start_polling(3, is_background=True)
|
|
78
77
|
|
|
79
78
|
if __name__ == '__main__':
|
|
80
79
|
asyncio.run(main())
|
|
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
|
|
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
|
|
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
|
|
File without changes
|