aioimap: Asyncio IMAP client
Receive e-mails from an IMAP server asynchronously and trigger a callback with the message.
Dependencies
aioimap requires:
- Python (>=3.7)
- aioimaplib (>=0.7.18)
- python-dotenv
- fastapi (>=0.61)
- uvicorn (>=0.12)
Usage
Assume a project structure as so:
project
|
|--app.py
|--.env
app.py:
from aioimap import Message
def callback(m: Message):
print("Subject: {}".format(m.subject))
print("Sender: {}".format(m.sender))
# do some other fun stuff
Terminal (without .env file):
cd path/to/project
python -m aioimap --host <EMAILSERVER> -u <EMAILID> -p <PWD> -a "app:callback"
If you have a .env file in the same directory:
SERVER=<EMAILSERVER>
EMAIL=<EMAILID>
PASS=<PWD>
Then Terminal (with .env file):
cd path/to/project
python -m aioimap -a "app:callback"
Metadata
Release files for aioimap 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aioimap-0.2.7.tar.gz | 7.0 kB | Details |
Release files / aioimap-0.2.7.tar.gz
| Download URL | aioimap-0.2.7.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46e1669cb54340ee9a67b492149dd190f3973d37c586347bf115229bb8d73113
|
|
BLAKE2b-256 checksum How to use checksums |
3967701ca77c81368e62a18c5065120507389fa5c91473a41a4d1701c7f2a34c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.4
|