A package designed to make sending messages easy and efficient!
Project description
Messages: Create and send messages fast!
Join the conversation in the Messages Slack Team
Purpose
- Messages is a package designed to make sending messages easy!
- Messages wraps various standard library module, third-party module, web app API calls, etc. all in one package.
- Messages can send messages asynchronously.
- Messages can send messages via the command-line interface.
Installation
$ pip3 install messages
Supported Messages
Upcoming Messages
- Whatever the community thinks is fun or interesting.
- Please Contribute Code!
Examples
REPL
>>> from messages import Email
>>> msg = 'Hello,\n\tBuy more Bitcoin!'
>>> m = Email(
from_='me@here.com',
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...
CLI
$ messages email myProfileName 'Hello,\n\tBuy more Bitcoin!' \
-t you@there.com \
-a ./file.txt \
-a ~/Documents/file2.pdf \
Message sent...
Telegram
REPL
>>> from messages import TelegramBot
>>> msg = 'Hello,\n\tBuy more Bitcoin!'
>>> t = TelegramBot(
chat_id='1234567',
body=msg,
attachments=['https://url1.com', 'https://url2.com'],
profile='myProfileName'
)
>>>
>>> t.send() # send synchronously
>>> t.send_async() # send asynchronously
Message sent...
CLI
$ messages telegram myProfileName 'Hello,\n\tBuy more Bitcoin!' \
-a 'https://url1.com/picture.gif' \
-a 'https://url2.com/file.pdf' \
Message sent...
Read the Wiki for more examples
Contributing Code
- 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
messages-0.4.4.tar.gz
(28.3 kB
view hashes)
Built Distribution
messages-0.4.4-py3-none-any.whl
(19.9 kB
view hashes)