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_param)
# 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.6.tar.gz
(10.6 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
migate-1.0.6-py3-none-any.whl
(12.7 kB
view details)
File details
Details for the file migate-1.0.6.tar.gz.
File metadata
- Download URL: migate-1.0.6.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e351d84ac3be755bc943ee23b5c69a8b4819bd71c6002c9536f93af9fb07d6c8
|
|
| MD5 |
d4f7a9e6e495784f23c480629d48ee9a
|
|
| BLAKE2b-256 |
d46d07d8e043b379e8188fe4b221c984128f18d2482bb5bf035dc8593ba925c8
|
File details
Details for the file migate-1.0.6-py3-none-any.whl.
File metadata
- Download URL: migate-1.0.6-py3-none-any.whl
- Upload date:
- Size: 12.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 |
5cfef87a72e2984fe2903122d20863ad66d318e7b1473976d2a09288407cf173
|
|
| MD5 |
f287accc8f188d7d9826ca1cd6ab39ff
|
|
| BLAKE2b-256 |
a061dc8c44aca7c26a75182ec8a465404b02295626734560cdfe778e6b300e1f
|