cai package

Entry Module for CAI.

Copyright

Copyright (C) 2021-2021 cscs181

License

AGPL-3.0 or later. See LICENSE for detail.

Subpackages

Submodules

cai.exceptions module

Application Exceptions

This module is used to collect all application exceptions.

Copyright

Copyright (C) 2021-2021 cscs181

License

AGPL-3.0 or later. See LICENSE for detail.

exception cai.exceptions.CaiException

基类:Exception

Application Base Exception

exception cai.exceptions.SsoServerException

基类:cai.exceptions.CaiException

Server Related Exception

exception cai.exceptions.ApiException(uin: Optional[int])

基类:cai.exceptions.CaiException

Base Exception for API

exception cai.exceptions.ClientNotAvailable(uin: Optional[int], reason: str)

基类:cai.exceptions.ApiException

Cannot get client

exception cai.exceptions.ApiResponseError(uin: int, seq: int, ret_code: int, command_name: str)

基类:cai.exceptions.ApiException

Receive a response with non zero return code.

exception cai.exceptions.LoginException(uin: int, status: int, message: str = '')

基类:cai.exceptions.ApiException

Base Exception for Login

exception cai.exceptions.LoginSliderNeeded(uin: int, verify_url: str)

基类:cai.exceptions.LoginException

Need Slider Ticket when Login

exception cai.exceptions.LoginCaptchaNeeded(uin: int, captcha_image: bytes, captcha_sign: bytes)

基类:cai.exceptions.LoginException

Need Captcha Image when Login

exception cai.exceptions.LoginAccountFrozen(uin: int)

基类:cai.exceptions.LoginException

Account is already frozen

exception cai.exceptions.LoginDeviceLocked(uin: int, sms_phone: Optional[str], verify_url: Optional[str], message: Optional[str])

基类:cai.exceptions.LoginException

Device lock checking is needed

exception cai.exceptions.LoginSMSRequestError(uin: int)

基类:cai.exceptions.LoginException

Too many sms verify request

exception cai.exceptions.RegisterException(uin: int, status: int, message: str = '')

基类:cai.exceptions.ApiException

Exception for Register

exception cai.exceptions.BaseFriendListException(uin: Optional[int])

基类:cai.exceptions.ApiException

Base Exception for Friend List

exception cai.exceptions.FriendListException(uin: int, status: int, message: str = '')

基类:cai.exceptions.BaseFriendListException

Exception for Friend List

exception cai.exceptions.GroupListException(uin: int, status: int, message: str = '')

基类:cai.exceptions.BaseFriendListException

Exception for Group List

exception cai.exceptions.GroupMemberListException(uin: int, status: int, message: str = '')

基类:cai.exceptions.BaseFriendListException

Exception for Group Member List

cai.log module

Application Logger

This module is used to build application logger.

Copyright

Copyright (C) 2021-2021 cscs181

License

AGPL-3.0 or later. See LICENSE for detail.