Skip to main content

Postcard

POP3/IMAP/SMTP client and more!

Thanks for use.

How to use

POP3

For decorator

from postcard import Pop3

pop = Pop3()

@pop.process(user="xxx", pwd="xxx")
def get_content():
    content = pop.retrieve()["content"]
    print(content)

For usual

from postcard import Pop3

pop = Pop3()

pop.login(user="xxx", pwd="xxx")
...
pop.close()

SMTP

from postcard import Smtp

smtp = Smtp()

@smtp.process(user="xxx", pwd="xxx")
def send():
    ret = smtp.send_mail(subject="xx", content="xx", receiver="xx")
    print(ret)

IMAP

from postcard import Imap

imap = Imap()

@imap.process(user="xxx", pwd="xxx")
def get_content():
    content = imap.retrieve()["content"]   # If you want to mark as read, please set readonly to False.
    print(content)

Release files for postcard 0.3.2

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

Source distribution (sdist)

Source distribution for postcard 0.3.2
File Size Uploaded
postcard-0.3.2.tar.gz 6.8 kB Details

Built distribution (wheel)

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

Total release size: 15.3 kB

Release files / postcard-0.3.2.tar.gz

Download URL postcard-0.3.2.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
17309158bf54345a2ac2b9beb6bc7212d2060127d00801906ccb9ee9476c4244
BLAKE2b-256 checksum
How to use checksums
6beb635d7e1fd8046c356dd31c5bd5320eb59029fd8d3c59b0fbc9d90e4c838e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.0.2rc1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6

Release files / postcard-0.3.2-py3-none-any.whl

Download URL postcard-0.3.2-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
037d339f5b7cd461a9abf11dd566c5a28d14b5de18d69d5e80b5180f01545edc
BLAKE2b-256 checksum
How to use checksums
9ed27a5f31e53e96ef01bb9adce1c0d088aeff9e783e2155997cc5110036cfc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.0.2rc1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3

2 release files

0.2

2 release files

0.1.91

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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