mac_imessage package

Submodules

mac_imessage.custom_types module

mac_imessage.exceptions module

exception mac_imessage.exceptions.BadPhoneNumberFormatError(phone_number: Any)[source]

Bases: Exception

MESSAGE = '{phone_number} is not a valid phone number'
exception mac_imessage.exceptions.NotOnMacOSError[source]

Bases: Exception

MESSAGE = 'Sending messages on platforms other than macOS is not supported'
exception mac_imessage.exceptions.UnsupportedMediumError(medium: Any)[source]

Bases: Exception

MESSAGE = 'Medium {medium} not in supported mediums {supported_mediums}'

mac_imessage.utils module

class mac_imessage.utils.SendKwargs[source]

Bases: SendViaMediumKwargs

medium: MEDIUMS
message: MESSAGE
phone_number: PHONE_NUMBER
class mac_imessage.utils.SendViaMediumKwargs[source]

Bases: TypedDict

message: MESSAGE
phone_number: PHONE_NUMBER
mac_imessage.utils.send(**kwargs: Unpack[SendKwargs]) SendReturn[source]
mac_imessage.utils.send_imessage(**kwargs: Unpack[SendViaMediumKwargs]) SendReturn[source]
mac_imessage.utils.send_sms(**kwargs: Unpack[SendViaMediumKwargs]) SendReturn[source]

Module contents