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 -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/picture.gif' \
-a 'https://url2.com/file.pdf' \
-P myProfileName
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.

Source Distribution

messages-0.4.3.tar.gz (25.5 kB view hashes)

Uploaded Source

Built Distribution

messages-0.4.3-py3-none-any.whl (19.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page