migate is a simplified Xiaomi authentication gateway for Python projects
Project description
migate
migate is a simplified Xiaomi authentication gateway for Python projects
Installation
pip install migate
Or in pyproject.toml:
dependencies = [
"migate"
]
Usage
import migate
service_id = ''
service_param = {"sid": service_id}
# Required for some service IDs like "unlockApi"
# service_param["checkSafeAddress"] = True
pass_token = migate.get_passtoken(service_param)
# pass_token returns: {"deviceId", "passToken", "userId"}
# ___
service = migate.get_service(pass_token, service_id)
# service returns: {'servicedata': {'nonce', 'ssecurity', 'cUserId', 'psecurity'}, 'cookies': {'serviceToken/popRunToken/new_bbs_serviceToken' ...}}
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
migate-1.0.4.tar.gz
(8.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file migate-1.0.4.tar.gz.
File metadata
- Download URL: migate-1.0.4.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8d467b5c6ef2b5f261a1df7ec7cabda6981660e6920c510f88c9eb12a9f29c3
|
|
| MD5 |
14c98e9e2519c5f1323fb0a349e53874
|
|
| BLAKE2b-256 |
916876d9bd375abe47803a6d2703590b018ba491c5634afb386f10c1c42ed560
|
File details
Details for the file migate-1.0.4-py3-none-any.whl.
File metadata
- Download URL: migate-1.0.4-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91aa05e020f77b55257efd096635ba5d3d9cfb992369d07f853e87917d53ee28
|
|
| MD5 |
2a2f5b19f49db50ff7c3f34790892fd8
|
|
| BLAKE2b-256 |
df1c8a43905189c208bdd76a755a86f5b53edd72aaa4505888331c29375c6836
|