- Messages is a package designed to make sending messages easy and efficient!
- Messages wraps various standard library module, third-party module, web app API calls, etc. all in one package and with a consistent API across all message types.
- Messages can send messages asynchronously.
- Messages can send messages via the command-line interface.
Python3 only
$ pip install messages
Documentation in the Wiki
>>> from messages import Email
>>> msg = 'Hello,\n\tBuy more Bitcoin!'
>>> m = Email(
to='you@there.com',
body=msg,
attachments=['./file1.txt', '~/Documents/file2.pdf'],
profile='myProfileName',
)
>>>
>>> m.send() # send synchronously
>>> m.send_async() # send asynchronously
Message sent...
$ messages email myProfileName 'Hello,\n\tBuy more Bitcoin!' \
--to you@there.com \
--attach ./file.txt \
--attach ~/Documents/file2.pdf \
Message sent...
Read the Wiki for more examples
- Help Wanted!
- All contributions are welcome to build upon the package!
- If it's a message, add it to messages!
- Read the Wiki for guidelines.
- Join the conversation in the Messages Slack Team