Skip to main content

No project description provided

Project description

Poste-sdk

poste操作助手

Poste服务部署

  1. 生成文档 cd docs && make html
  2. 在线文档

安装

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()

Project details


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.12.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

poste_sdk-0.1.12-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file poste-sdk-0.1.12.tar.gz.

File metadata

  • Download URL: poste-sdk-0.1.12.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.7.13 Darwin/18.7.0

File hashes

Hashes for poste-sdk-0.1.12.tar.gz
Algorithm Hash digest
SHA256 0cd255a63154049b390e14efa689043c059ceb2aeb9de27fccb2e1530123c365
MD5 720114c802f5ebe5ded61f0cd21bef07
BLAKE2b-256 523b79091c803e773e24db914aed89e76d607617807b520eccfb0945d7b8e2b1

See more details on using hashes here.

File details

Details for the file poste_sdk-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: poste_sdk-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.7.13 Darwin/18.7.0

File hashes

Hashes for poste_sdk-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 f6c1ab04abc6800801bfdb113369428f7dd4f023bf3a0229d50eb5775807cd00
MD5 1ef33eebc0a7d2269e329b7ce9c1e81b
BLAKE2b-256 9095400e282732ccb6055c723fdbf951763b1bacb6d72c24f5bbe58ae6341532

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page