Skip to main content

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

Metadata

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)

Source distribution for poste-sdk 0.1.12
File Size Uploaded Provenance Actions
poste-sdk-0.1.12.tar.gz 4.6 kB Without provenance Details for poste-sdk-0.1.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for poste-sdk 0.1.12
File Interpreter ABI Platform Actions
poste_sdk-0.1.12-py3-none-any.whl Python 3 none any Details for poste_sdk-0.1.12-py3-none-any.whl

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

Security for poste-sdk 0.1.12

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.

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