Commit Graph

59 Commits

Author SHA1 Message Date
izzzzzi 4ac8b6ce08 Добавлена обработка таймаутов с использованием httpx в клиентских операциях 2025-03-04 01:23:54 +05:00
Vladless 5ccdc7f68b refactoring and minor improvements 2025-02-25 19:56:42 +03:00
izzzzzi 0657136ae5 Рефакторинг и оптимизация импортов в модулях проекта
- Упорядочивание и группировка импортов в соответствии с PEP 8
- Удаление неиспользуемых импортов
- Перемещение локальных импортов в начало списка
- Добавление пустых строк для улучшения читаемости
- Систематизация порядка импортов в различных модулях проекта
2025-02-25 04:14:58 +05:00
Vladless 469d2c9afe edit_text/lots of improvements 2025-02-16 07:17:35 +03:00
Zakhar Izmaylov fa8c644520 Add client toggle functionality for 3x-ui servers 2025-02-14 23:06:45 +03:00
Vladless f5afec997c add traffic statistic/share refferal link and more 2025-02-07 21:38:46 +03:00
Vladless 13325fab43 ruff formatting 2025-02-06 13:53:02 +03:00
Zakhar Izmaylov 83870a2022 Refactor and improve security with cryptographically secure random generation
- Replace `random` module with `secrets` for cryptographically secure random choices
- Update type hints for async API methods in client.py
- Optimize file reading with aiofiles in multiple handlers
- Improve error handling and logging in various modules
- Update Python target version to 3.12 in pyproject.toml
- Remove unused imports and improve code quality
2025-01-30 22:35:09 +03:00
Zakhar Izmaylov 8ce7ee0ce0 Optimize import statements and remove unused imports across multiple files
This commit focuses on cleaning up import statements by:
- Removing unused imports
- Organizing import order
- Removing redundant imports
- Ensuring consistent import style across different modules
2025-01-29 07:15:20 +03:00
Zakhar Izmaylov c850698703 Refactor client configuration and improve code clarity in client.py and admin_servers.py. Added a new line in ClientConfig for better readability and updated the extend_client_key function signature for consistency. Corrected a TODO comment format in admin_servers.py for improved code standards. 2025-01-23 08:50:04 +03:00
Zakhar Izmaylov 70e9bfc2ca Refactor client management functions in client.py to use a dataclass for client configuration. Update add_client, extend_client_key, and delete_client functions to improve parameter handling and logging. Enhance error handling and documentation for better clarity and maintainability. 2025-01-23 08:49:03 +03:00
Zakhar Izmaylov acb73101c0 Refactor and clean up code formatting across multiple files
- Consolidated and simplified code formatting by removing unnecessary line breaks and improving readability in various functions.
- Updated the handling of backup file sending in backup.py for better clarity.
- Streamlined error handling and logging messages in several handlers to enhance consistency.
- Adjusted the Makefile to exclude specific files during Ruff checks and formatting.
- Made minor adjustments to function signatures and parameter handling for improved clarity and consistency.

This commit enhances code maintainability and readability without altering functionality.
2025-01-21 08:57:12 +03:00
Vladless 722a0f4913 SuperNode/SyncTimeout/pytz 2025-01-14 12:16:14 +03:00
Vladless 0391bd90e9 FlowPayRenew/fixNotify/pay_history/custom/statistic/minorFixes 2025-01-14 04:06:55 +03:00
Zakhar Izmaylov a018a42f2c Add antiflood and lint 2025-01-10 14:51:13 +03:00
Vladless 3ac9435e58 syncClaster/picGifts/mailingCluster/renewButtin and more 2025-01-10 00:02:13 +03:00
Vladless 97091f4875 fix_refferal/GIFTS/redirect/name_sub and more 2024-12-19 20:37:41 +03:00
Zakhar Izmaylov 142c1c15e7 Migrate to ruff 2024-12-13 12:09:20 +03:00
Vladless f0b2c40a8a Revert "Merge pull request #112 from Vladless/hteppl-optimize-sources"
This reverts commit fa681fac92, reversing
changes made to b31c9d2e10.
2024-12-10 03:53:07 +03:00
hteppl 7a11c51e1f Move util-related files into separated folder + refactor imports 2024-12-08 04:57:20 +03:00
Vladless 6c29f6d164 reset traffic 2024-11-24 23:02:34 +03:00
Vladless 783ac6f705 ID_Inbound 2024-11-24 22:29:32 +03:00
Vladless b0b690b78f ID_Inbound 2024-11-24 22:29:05 +03:00
Zakhar Izmaylov d1b7a01b4f Update config 2024-11-22 21:24:55 +03:00
Zakhar Izmaylov fb28a0881c Add dry logging 2024-11-16 18:01:28 +03:00
Vladless d37b1d12c6 ip 2024-11-15 23:59:42 +03:00
Vladless c12c1fd174 logging for add client 2024-11-15 19:24:09 +03:00
Vladless 2ea073db4a servers in clusters/total_gb 2024-11-14 14:17:16 +03:00
Vladless e23676b74d servers in clusters/total_gb 2024-11-14 03:03:32 +03:00
Zakhar Izmaylov 47c514a55b Update keyboards, update texts.py 2024-11-13 16:48:56 +03:00
Vladless 1caaaf9ae8 add TOTAL_GB 2024-11-13 16:18:16 +03:00
Vladless 7bf22c8c2b small fix 2024-11-13 15:38:20 +03:00
Vladless 38f02bbcb6 redesign/bug fixes/admin trial 2024-11-13 04:01:13 +03:00
Vladless c01c888f0e redesign/bug fixes/admin trial 2024-11-13 03:59:34 +03:00
Vladless ca056b0add minPython 3.10/py3xui/subs/rm_artefacts 2024-11-11 17:47:26 +03:00
Zakhar Izmaylov e524e439b1 Add make and config for formatting 2024-11-10 11:02:15 +03:00
Vladless 6f5aa1e3f4 reset traffic 2024-11-10 03:31:19 +03:00
Zakhar Izmaylov 7b9e5914c0 isort and black 2024-11-09 11:44:15 +03:00
Zakhar Izmaylov 76dd0fd1f6 Migrate logging for loguru 2024-11-09 11:41:48 +03:00
Zakhar Izmaylov ff2c66784d Fix logging 2024-11-09 11:33:17 +03:00
Zakhar Izmaylov c68a5794af Refactoring and fix 2024-11-09 10:36:16 +03:00
Vladless 033f664903 Подписки. initial commit 2024-10-30 02:35:27 +03:00
Vladless 3fba9fa9a0 исправлен траффик при продлении 2024-10-29 23:45:27 +03:00
Vladless bbe54a933d rm update_bot 2024-10-28 19:49:03 +03:00
Vladless c23f7ce091 Админ. Установка времени ключей 2024-10-27 06:15:34 +03:00
Vladless 42395ac414 Логи. Уведомления. Тексты 2024-10-25 20:45:12 +03:00
Vladless e0b14d60a2 основной текст в отдельном файле 2024-10-22 01:53:50 +03:00
Vladless be6483db5b aiohttp, уведомления, правки 2024-10-09 00:51:22 +03:00
Vlad d339377181 чистота кода 2024-10-03 07:08:17 +03:00
Vlad 84f1049371 выбор сервера, переработка ссылок 2024-10-03 04:43:55 +03:00