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

$ pip install messages

Supported Messages

Upcoming Messages

  • Whatever the community thinks is fun or interesting.
  • Please Contribute!

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 -t you@there.com \
-m 'Hello,\n\tBuy more Bitcoin!' \
-a ./file.txt
-a ~/Documents/file2.pdf
-P myProfileName
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 telegrambot \
-m 'Hello,\n\tBuy more Bitcoin!' \
-a 'https://url1.com'
-a 'https://url2.com'
-P myProfileName
Message sent...

Read the Wiki for more examples

Contributing

  • 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

This version
History Node

0.4.1

History Node

0.4.0

History Node

0.3.4

History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
messages-0.4.1-py3-none-any.whl (17.9 kB) Copy SHA256 hash SHA256 Wheel py3 Jun 9, 2018
messages-0.4.1.tar.gz (24.3 kB) Copy SHA256 hash SHA256 Source None Jun 9, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page