Poste-sdk
poste操作助手
Poste服务部署
- 生成文档
cd docs && make html - 在线文档
安装
pip install poste-sdk
简要使用
from poste_sdk.client import PosteClient
from poste_sdk.client import BoxClient
from poste_sdk.models import Mail
with PosteClient(address='管理账户', password='密码', domain='域名/ip', verify_ssl=False) as client:
# 初始化
box_client = client.init_box_client(email_prefix='test', password='test',domain=None)
assert isinstance(box_client, BoxClient)
# 获取最近1条邮件
mail = box_client.get_latest()
assert isinstance(mail, Mail)
# email 总数量
box_client.get_email_cnt()
# 获取指定邮件
mail = box_client.get_email(id_=1)
assert isinstance(mail, Mail)
# 删除邮件
box_client.delete_by_id(1)
# 清空邮件
box_client.drop_mails()
Release files for poste-sdk 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| poste-sdk-0.1.12.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| poste_sdk-0.1.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / poste-sdk-0.1.12.tar.gz
| Download URL | poste-sdk-0.1.12.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cd255a63154049b390e14efa689043c059ceb2aeb9de27fccb2e1530123c365
|
|
BLAKE2b-256 checksum How to use checksums |
523b79091c803e773e24db914aed89e76d607617807b520eccfb0945d7b8e2b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.7.13 Darwin/18.7.0
|
Release files / poste_sdk-0.1.12-py3-none-any.whl
| Download URL | poste_sdk-0.1.12-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6c1ab04abc6800801bfdb113369428f7dd4f023bf3a0229d50eb5775807cd00
|
|
BLAKE2b-256 checksum How to use checksums |
9095400e282732ccb6055c723fdbf951763b1bacb6d72c24f5bbe58ae6341532
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.7.13 Darwin/18.7.0
|