termisations 0.1.0__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.
- termisations/__init__.py +21 -0
- termisations/__main__.py +12 -0
- termisations/app.py +1565 -0
- termisations/app.tcss +183 -0
- termisations/cli.py +1101 -0
- termisations/core/__init__.py +7 -0
- termisations/core/colors.py +74 -0
- termisations/core/commands.py +1508 -0
- termisations/core/events.py +573 -0
- termisations/core/i18n.py +189 -0
- termisations/core/inputlog.py +285 -0
- termisations/core/metrics.py +223 -0
- termisations/core/models.py +498 -0
- termisations/core/paths.py +214 -0
- termisations/core/profile.py +422 -0
- termisations/core/redact.py +530 -0
- termisations/core/router.py +820 -0
- termisations/core/session.py +59 -0
- termisations/core/storage.py +639 -0
- termisations/core/trace.py +182 -0
- termisations/layouts.py +13 -0
- termisations/locale/ru/app.toml +90 -0
- termisations/locale/ru/cli.toml +79 -0
- termisations/locale/ru/core.commands.toml +109 -0
- termisations/locale/ru/core.events.toml +6 -0
- termisations/locale/ru/core.inputlog.toml +6 -0
- termisations/locale/ru/core.metrics.toml +5 -0
- termisations/locale/ru/core.models.toml +9 -0
- termisations/locale/ru/core.paths.toml +7 -0
- termisations/locale/ru/core.profile.toml +22 -0
- termisations/locale/ru/core.redact.toml +12 -0
- termisations/locale/ru/core.router.toml +17 -0
- termisations/locale/ru/core.storage.toml +5 -0
- termisations/locale/ru/core.trace.toml +7 -0
- termisations/locale/ru/mock.toml +164 -0
- termisations/locale/ru/protocol.account.toml +15 -0
- termisations/locale/ru/protocol.caps.toml +4 -0
- termisations/locale/ru/protocol.omemo.toml +6 -0
- termisations/locale/ru/protocol.omemo_storage.toml +7 -0
- termisations/locale/ru/protocol.sasl2.plugin.toml +12 -0
- termisations/locale/ru/protocol.session.toml +208 -0
- termisations/locale/ru/ui.chat.toml +16 -0
- termisations/locale/ru/ui.prompt.toml +22 -0
- termisations/locale/ru/ui.xmllog.toml +22 -0
- termisations/locale/ru/xeps.toml +11 -0
- termisations/mock.py +3682 -0
- termisations/protocol/__init__.py +6 -0
- termisations/protocol/account.py +193 -0
- termisations/protocol/caps.py +192 -0
- termisations/protocol/mam.py +159 -0
- termisations/protocol/omemo.py +164 -0
- termisations/protocol/omemo_storage.py +82 -0
- termisations/protocol/sasl2/__init__.py +17 -0
- termisations/protocol/sasl2/plugin.py +268 -0
- termisations/protocol/sasl2/stanza.py +231 -0
- termisations/protocol/session.py +3501 -0
- termisations/protocol/tracing.py +250 -0
- termisations/protocol/transport.py +175 -0
- termisations/ui/__init__.py +9 -0
- termisations/ui/chat.py +1213 -0
- termisations/ui/prompt.py +920 -0
- termisations/ui/statusbar.py +530 -0
- termisations/ui/xmllog.py +1275 -0
- termisations/xeps.py +564 -0
- termisations-0.1.0.dist-info/METADATA +698 -0
- termisations-0.1.0.dist-info/RECORD +69 -0
- termisations-0.1.0.dist-info/WHEEL +4 -0
- termisations-0.1.0.dist-info/entry_points.txt +2 -0
- termisations-0.1.0.dist-info/licenses/LICENSE +661 -0
termisations/__init__.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""termisations - терминальный XMPP-клиент с упором на прозрачность протокола.
|
|
2
|
+
|
|
3
|
+
Пакет намеренно не импортирует подмодули на верхнем уровне: слои собираются
|
|
4
|
+
в точке входа (``termisations.cli``), а тесты подключают только то, что проверяют.
|
|
5
|
+
Это исключает циклические импорты между core, ui и protocol.
|
|
6
|
+
|
|
7
|
+
Copyright (C) 2026 Evgeny Inkov <me@inkov.dev>, XMPP: tzx1z@inkov.dev
|
|
8
|
+
|
|
9
|
+
Программа свободная: ее можно распространять и изменять на условиях GNU Affero
|
|
10
|
+
General Public License версии 3, опубликованной Free Software Foundation.
|
|
11
|
+
Программа распространяется в надежде на пользу, но БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ,
|
|
12
|
+
включая подразумеваемые гарантии товарного состояния и пригодности для
|
|
13
|
+
определенной цели. Полный текст лицензии лежит в файле LICENSE и доступен на
|
|
14
|
+
https://www.gnu.org/licenses/agpl-3.0.html
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
__all__ = ["__author__", "__license__", "__version__"]
|
|
18
|
+
|
|
19
|
+
__version__ = "0.1.0"
|
|
20
|
+
__author__ = "Evgeny Inkov <me@inkov.dev>"
|
|
21
|
+
__license__ = "AGPL-3.0-only"
|
termisations/__main__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Запуск пакета как модуля: ``python -m termisations``.
|
|
2
|
+
|
|
3
|
+
Обертка тонкая намеренно: вся работа с аргументами и сборка слоев живет в cli.main,
|
|
4
|
+
чтобы точка входа скрипта и запуск модулем вели себя одинаково.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import sys
|
|
8
|
+
|
|
9
|
+
from termisations.cli import main
|
|
10
|
+
|
|
11
|
+
if __name__ == "__main__":
|
|
12
|
+
sys.exit(main())
|