maxkit 2.13.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.
- maxkit-2.13.0/LICENSE.md +22 -0
- maxkit-2.13.0/PKG-INFO +45 -0
- maxkit-2.13.0/README.md +46 -0
- maxkit-2.13.0/aiomax/__init__.py +9 -0
- maxkit-2.13.0/aiomax/bot.py +1166 -0
- maxkit-2.13.0/aiomax/buttons.py +303 -0
- maxkit-2.13.0/aiomax/cache.py +31 -0
- maxkit-2.13.0/aiomax/exceptions.py +85 -0
- maxkit-2.13.0/aiomax/filters.py +179 -0
- maxkit-2.13.0/aiomax/fsm.py +107 -0
- maxkit-2.13.0/aiomax/router.py +383 -0
- maxkit-2.13.0/aiomax/russian_trusted_root_ca.cer +33 -0
- maxkit-2.13.0/aiomax/types.py +1512 -0
- maxkit-2.13.0/aiomax/utils.py +125 -0
- maxkit-2.13.0/maxkit.egg-info/PKG-INFO +45 -0
- maxkit-2.13.0/maxkit.egg-info/SOURCES.txt +26 -0
- maxkit-2.13.0/maxkit.egg-info/dependency_links.txt +1 -0
- maxkit-2.13.0/maxkit.egg-info/requires.txt +2 -0
- maxkit-2.13.0/maxkit.egg-info/top_level.txt +1 -0
- maxkit-2.13.0/pypi-description.md +19 -0
- maxkit-2.13.0/pyproject.toml +92 -0
- maxkit-2.13.0/setup.cfg +4 -0
- maxkit-2.13.0/tests/test_deserialization_resilience.py +124 -0
- maxkit-2.13.0/tests/test_filters_none_content.py +58 -0
- maxkit-2.13.0/tests/test_handle_update_textless.py +72 -0
- maxkit-2.13.0/tests/test_low_severity_fixes.py +194 -0
- maxkit-2.13.0/tests/test_polling_and_dispatch.py +216 -0
- maxkit-2.13.0/tests/test_smoke.py +27 -0
maxkit-2.13.0/LICENSE.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 OAA DPNSPN
|
|
4
|
+
Copyright (c) 2026 Aleksandr Kovalko
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
maxkit-2.13.0/PKG-INFO
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: maxkit
|
|
3
|
+
Version: 2.13.0
|
|
4
|
+
Summary: Asynchronous framework for Max Bot API (maintained successor of aiomax)
|
|
5
|
+
Author-email: mbutsk <mbutsk@icloud.com>, moontr3 <contact@moontr3.ru>
|
|
6
|
+
Maintainer-email: Aleksandr Kovalko <gistrec@gmail.com>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Project-URL: Docs, https://github.com/gistrec/maxkit/wiki
|
|
9
|
+
Project-URL: Source code, https://github.com/gistrec/maxkit
|
|
10
|
+
Keywords: bot,api,asyncio,max,aiomax
|
|
11
|
+
Classifier: Framework :: AsyncIO
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
|
+
Classifier: Topic :: Communications :: Chat
|
|
20
|
+
Requires-Python: >=3.9
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE.md
|
|
23
|
+
Requires-Dist: aiohttp
|
|
24
|
+
Requires-Dist: aiofiles
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# maxkit
|
|
28
|
+
|
|
29
|
+
Асинхронный фреймворк [Max](https://max.ru) Bot API.
|
|
30
|
+
|
|
31
|
+
Поддерживаемый преемник [aiomax](https://github.com/dpnspn/aiomax)
|
|
32
|
+
(оригинальный репозиторий заархивирован 14.07.2026). Модуль по-прежнему
|
|
33
|
+
импортируется как `aiomax` — переход сводится к замене зависимости.
|
|
34
|
+
|
|
35
|
+
## Преимущества
|
|
36
|
+
|
|
37
|
+
- Полная асинхронность
|
|
38
|
+
|
|
39
|
+
- Возможность разделения на роутеры
|
|
40
|
+
|
|
41
|
+
- Эквиваленты всех функций доступных в Max Bot API
|
|
42
|
+
|
|
43
|
+
- Встроенный конечный автомат (FSM)
|
|
44
|
+
|
|
45
|
+
- Поддержка [PyPy](https://pypy.org/)
|
maxkit-2.13.0/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# maxkit
|
|
2
|
+
|
|
3
|
+
Асинхронное API для работы с мессенджером [Max](https://max.ru).
|
|
4
|
+
|
|
5
|
+
> [!NOTE]
|
|
6
|
+
> maxkit — поддерживаемый преемник [aiomax](https://github.com/dpnspn/aiomax)
|
|
7
|
+
> (оригинальный репозиторий заархивирован 14.07.2026). Модуль по-прежнему
|
|
8
|
+
> импортируется как `aiomax`, поэтому переход с PyPI-пакета `aiomax` сводится
|
|
9
|
+
> к замене зависимости — код ботов менять не нужно.
|
|
10
|
+
|
|
11
|
+
## Начало работы
|
|
12
|
+
|
|
13
|
+
Чтобы установить maxkit, выполните следующую команду:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pip install maxkit
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Чтобы установить git-версию maxkit (возможны баги и нестабильность), выполните команду:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pip install git+https://github.com/gistrec/maxkit.git
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Импорт в коде остаётся прежним:
|
|
26
|
+
|
|
27
|
+
```python
|
|
28
|
+
import aiomax
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
> [!IMPORTANT]
|
|
32
|
+
> С недавнего времени для подключения к серверам Max нужен [сертификат Минцифры](https://www.gosuslugi.ru/crt).
|
|
33
|
+
> Если у вас не установлен сертификат, при создании класса бота можно указать параметр `use_certificate=True` - тогда библиотека будет использовать встроенный сертификат Минцифры.
|
|
34
|
+
|
|
35
|
+
> [!WARNING]
|
|
36
|
+
> При использовании сертификатов Минцифры государство Российской Федерации может получать доступ ко всему отправляемому трафику.
|
|
37
|
+
> Рекомендуется не использовать сессию бота для отправки конфиденциальных данных при установленном `use_certificate=True`.
|
|
38
|
+
|
|
39
|
+
Документация и примеры ботов [тут](https://github.com/gistrec/maxkit/wiki)
|
|
40
|
+
|
|
41
|
+
## Aiomax Community
|
|
42
|
+
|
|
43
|
+
Обсудить aiomax / задать вопрос можно в сети чатов Aiomax Community
|
|
44
|
+
[Telegram](https://t.me/aiomax_chat) / [Max](https://max.ru/join/45DmBRwDNvcZVqYvf_cSCPu-_DuvYa5VmuQ4K2cmC_Q)
|
|
45
|
+
|
|
46
|
+
Новости о aiomax и Max Bot API выходят на телеграм канале [Aiomax Changelog](https://t.me/aiomax_cl)
|