Skip to main content

Messages: Create and send messages fast!

PyPI version Coverage Status

messages_words

Purpose

  • Messages is a package designed to make sending messages easy and efficient!
  • Messages intends to be a lightweight package with minimal dependencies.
  • Messages with a consistent API across all message types.
  • Messages includes asynchronous support for fast message handling.

Installation

Python3 only

$ pip install messages

Documentation in the Wiki

Supported Messages

Examples

Synchronous Execution

# You can send messages right in the REPL

>>> from messages import Email
>>> 
>>> m = Email(
            from_ = "me@here.com",
            to = "you@there.com",
            auth = "p@ssw0rd",   
            subject: "Good Advice"
            body = "Hello,\n\tBuy more Bitcoin!",
            attachments = ["./file1.txt", "~/Documents/file2.pdf"],
   )
>>>
>>> m.send()        
Message sent...

Asynchronous Execution

# You can also send messages inside a script

import asyncio

from messages import Email

RECIPIENTS = [
    "you@mail.com",
    "him@mail.com",
    "her@mail.com",
    "doglover@mail.com",
]



loop = asyncio.get_event_loop()

for r in RECIPIENTS
    e = Email(
        from_ = "me@gmail.com",
        to = r,
        auth = "p@ssw0rd",
        subject = "Good Advice",
        body = "This is an asynchronous email.\nContinue buying more Bitcoin!",
        attachments = ["./file1.txt", "~/Documents/file2.pdf"],
    )
    
loop.create_task(e.send_async())
tasks = asyncio.all_tasks(loop=loop)
group = asyncio.gather(*tasks)
loop.run_until_complete(group)

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.

Metadata

Release files for messages 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for messages 0.8.0
File Size Uploaded
messages-0.8.0.tar.gz 14.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for messages 0.8.0
File Interpreter ABI Platform
messages-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.9 kB

Release files / messages-0.8.0.tar.gz

Download URL messages-0.8.0.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5290463f41e0ff053078de8ec6d13aba4068081cccfd4460005485ff849512c9
BLAKE2b-256 checksum
How to use checksums
ba6d6f05773d8d99638cfa2634a1408b416677ae5e95821718b2919566e6ddd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.7.10 Linux/4.4.0-92-generic

Release files / messages-0.8.0-py3-none-any.whl

Download URL messages-0.8.0-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fa421cff0c2031b1cc80f4ce06b67720fa288e54ae694365a4425a57b9dfe86
BLAKE2b-256 checksum
How to use checksums
904412baea3ec30d2de74c596b1051ba8c9b8928567f7bed89db6a989fd0656f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.7.10 Linux/4.4.0-92-generic

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.5.0

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page