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)
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| postcard-0.3.2.tar.gz | 6.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for postcard 0.3.2
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.