No project description provided
Project description
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='域名') 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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
poste-sdk-0.1.5.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for poste_sdk-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d876882b11b220f3301c19492dbd98db6aeb73613ec856d570f666b64a474b81 |
|
MD5 | 1381ba3785da9b341fb4ba0b1ce52574 |
|
BLAKE2b-256 | a30261afbc2f684f1dcfb122d6d545169427401e458d2d2900b0e684edc95982 |