Skip to main content

A package designed to make sending messages easy and efficient!

Project description

Messages: Create and send messages fast!

PyPI version

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

Email

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for messages, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size messages-0.5.0-py3-none-any.whl (22.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size messages-0.5.0.tar.gz (30.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page