Messages: Create and send messages fast!
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| messages-0.8.0.tar.gz | 14.4 kB | Without provenance | Details for messages-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| messages-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for messages-0.8.0-py3-none-any.whl |
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
|
Security for messages 0.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.