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.2.tar.gz
(8.0 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.2.tar.gz.
File metadata
- Download URL: migate-1.0.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b574c9253120148d955b947e888b4ade803431ad41e9fa76f97450c7796893f7
|
|
| MD5 |
e70427676aca8caad18f9120e8ea841d
|
|
| BLAKE2b-256 |
f9db7c53ae68ffda9c25b2efcf4fc6b151a55418b0389af11a858c279c01f7e3
|
File details
Details for the file migate-1.0.2-py3-none-any.whl.
File metadata
- Download URL: migate-1.0.2-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.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e639186337abfb882cb95b9bc39f9f879d34bc8f5d02f456f53803789b9e2aea
|
|
| MD5 |
b91eb3e07447be54256a2107812687f9
|
|
| BLAKE2b-256 |
972d5125ff27c98ffa7c5a029a6921bdb9415aebb5001a110701cc2e065c7298
|