PaiGram/core
deepsource-autofix[bot] d4f1d64daf
style: format code with Black
This commit fixes the style issues introduced in df6b0e3 according to the output
from Black.

Details: https://github.com/PaiGramTeam/PaiGram/pull/780
2024-03-19 09:46:21 +00:00
..
dependence style: format code with Black 2024-03-19 09:46:21 +00:00
handler Add group manage service 2024-01-16 23:04:41 +08:00
plugin ♻️ separate core code 2023-08-02 20:11:35 +08:00
services Add channel alias service 2024-03-10 20:40:26 +08:00
__init__.py ♻️ PaiGram V4 2023-03-14 09:27:22 +08:00
application.py ♻️ separate core code 2023-08-02 20:11:35 +08:00
base_service.py ♻️ separate core code 2023-08-02 20:11:35 +08:00
basemodel.py ♻️ separate core code 2023-08-02 20:11:35 +08:00
config.py ♻️ separate core code 2023-08-02 20:11:35 +08:00
error.py 💄 Format with black 24.x.x 2024-03-16 09:44:15 +08:00
README.md ♻ 更新V3版本 2022-09-08 09:08:37 +08:00

core 目录说明

关于 Service

服务 Service 需定义在 services 文件夹下, 并继承 core.service.Service

每个 Service 都应包含 startstop 方法, 且这两个方法都为异步方法

from core.service import Service


class TestService(Service):
    def __init__(self):
        """do something"""

    async def start(self, *args, **kwargs):
        """do something"""

    async def stop(self, *args, **kwargs):
        """do something"""