micloud
Xiaomi cloud connect library
What it is and what it does
MiCloud is a Python library for authenticating with Xiaomi cloud accounts and fetching device information. It provides a simple interface to log in with credentials, retrieve authentication tokens, and list connected devices from the Xiaomi cloud service. The library can be used both as a Python module in code and as a command-line tool.
The package has no runtime dependencies and offers basic functionality: login, token retrieval, and device enumeration with optional JSON export. However, it is abandoned—the last commit was 2022-12-08—meaning it has not been updated to track potential changes in Xiaomi's cloud API or to maintain compatibility with modern Python versions.
Use it for:
- Retrieve a list of Xiaomi IoT devices associated with a cloud account for inventory or monitoring purposes
- Obtain a cloud service token for authenticating subsequent requests to Xiaomi device APIs
- Export device information to JSON for integration into home automation or device management systems
- Query Xiaomi cloud from a terminal script using the command-line interface with username and country parameters
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Logs into Xiaomi cloud accounts and retrieves device information and authentication tokens from the Xiaomi cloud service.
No. The package is abandoned and has not been updated since 2022-12-08. Without active maintenance, it is at high risk of breaking against current Xiaomi cloud APIs, and its Python version support is undocumented. High install friction compounds the risk. Only install if you are certain it works with your specific Xiaomi cloud environment and can maintain a local fork if needed.
Install
micloud on PyPI
pip
pip install miclouduv
uv add micloudpoetry
poetry add micloudInstalling micloud
Before you install
High install friction reported. Package is abandoned as of 2022-12-08 with no updates since its latest release, raising questions about compatibility with current Xiaomi cloud APIs and Python versions.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it legally safe to incorporate into most projects.
Quickstart
pip install micloud
from micloud import MiCloud
mc = MiCloud("USERNAME", "PASSWORD")
mc.login()
devices = mc.get_devices(country="de")
token = mc.get_token()
Python version support is unspecified; Xiaomi cloud API may have changed since last release in 2022, potentially breaking authentication.
Verify before relying
- Whether the package still authenticates successfully against current Xiaomi cloud endpoints
- Exact Python version compatibility not documented in the fact sheet
- Whether high install friction stems from missing dependencies or packaging issues
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,345 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 149,815/month — #10,983 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: micloud-0.6.tar.gz
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
xiaomi-bleManages Xiaomi BLE (Bluetooth Low Energy)…
permissive · top 15,000 on PyPI
python-miioPython library and CLI tool for controlling…
copyleft · top 15,000 on PyPI
glocaltokensExtracts local authentication tokens from…
permissive · top 15,000 on PyPI
azure-iot-hubProvides CRUD operations and service management…
permissive · top 15,000 on PyPI
tinytuyaControls and monitors Tuya WiFi smart devices…
permissive · top 15,000 on PyPI
dash-authAdds HTTP Basic Authentication and OpenID…
permissive · top 15,000 on PyPI
django-rest-knoxProvides token-based authentication for Django…
permissive · top 5,000 on PyPI
pyicloudPyiCloud provides Python access to iCloud web…
permissive · top 15,000 on PyPI
aws-sso-libProgrammatically interact with AWS IAM Identity…
permissive · top 15,000 on PyPI