Skip to main content

MZAPI - 多云服务统一 API 接口库

MZAPI (Multi-cloud API) 是一个集成多家云服务商 API 的多云统一接口库,提供统一、简洁的 Python SDK,让开发者可以用一致的方式调用腾讯云、阿里云、华为云等不同服务商的 API。

✨ 特性

  • 🌐 多云统一:一套接口,对接多家云服务商
  • 📦 轻量易用:简洁的 API 设计,快速上手
  • 🔐 安全可靠:完整的认证与签名机制
  • ⚡ 异步支持:同步/异步双模式
  • 🛡️ 稳定健壮:熔断、重试、预连接优化

📦 安装

pip install mzapi-multicloud-sdk

🚀 快速开始

腾讯云 OCR

from mzapi.tencentcloud import GeneralBasicOCR

client = GeneralBasicOCR(
    secret_id="your_secret_id",
    secret_key="your_secret_key",
)
result = client.recognize(image_base64="base64_encoded_image")

阿里云 OCR

from mzapi.aliyun.ocr import RecognizeAllText

client = RecognizeAllText(
    access_key_id="your_access_key_id",
    access_key_secret="your_access_key_secret",
    endpoint="ocr-api.cn-hangzhou.aliyuncs.com",
)
result = client.recognize(url="https://example.com/image.jpg")

📚 支持的云服务

云服务商 服务 说明
腾讯云 OCR 通用印刷体识别
阿里云 OCR 识别全部文字
华为云 OCR 光学字符识别

🔧 开发指南

环境要求

  • Python >= 3.10

本地开发

# 克隆仓库
git clone https://github.com/xiaomizhoubaobei/MZAPI-Python.git
cd MZAPI-Python

# 安装开发依赖
pip install -e ".[dev]"

# 运行测试
pytest tests/

📄 许可证

本项目采用 MPL-2.0 许可证。

Metadata

Release files for mzapi-multicloud-sdk 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mzapi-multicloud-sdk 0.0.1
File Size Uploaded
mzapi_multicloud_sdk-0.0.1.tar.gz 206.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mzapi-multicloud-sdk 0.0.1
File Interpreter ABI Platform
mzapi_multicloud_sdk-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 519.1 kB

Release files / mzapi_multicloud_sdk-0.0.1.tar.gz

Download URL mzapi_multicloud_sdk-0.0.1.tar.gz
Size 206.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a514172dfd1f76261307ca1e6d22d0b5cc42b426fe987abdd34ffaf2416356db
BLAKE2b-256 checksum
How to use checksums
54c65fa505a581106e6bc30205bb9283af0b3875bcc56751ada77bd2a9abb5d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / mzapi_multicloud_sdk-0.0.1-py3-none-any.whl

Download URL mzapi_multicloud_sdk-0.0.1-py3-none-any.whl
Size 312.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c3d5e73f7c53cbf90a6bbb1c857679baf2a63af51fa0b925a9633e1bc74a862
BLAKE2b-256 checksum
How to use checksums
cd4811943c73d1fd910daae4685fad3745262b2445010e553cfec8a8d761ed73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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