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.5.tar.gz
(9.2 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.5-py3-none-any.whl
(11.2 kB
view details)
File details
Details for the file migate-1.0.5.tar.gz.
File metadata
- Download URL: migate-1.0.5.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a87d897d03ee1d4594a6f68b4d834c8c6a4951f6d6facb875ddb65b58dc9839a
|
|
| MD5 |
f34f7ae1d5f24ebd335025088d82b8c3
|
|
| BLAKE2b-256 |
4e3da4de3a188ef51c55df4ed6637677a61729e02d267f7880838492cb6957d9
|
File details
Details for the file migate-1.0.5-py3-none-any.whl.
File metadata
- Download URL: migate-1.0.5-py3-none-any.whl
- Upload date:
- Size: 11.2 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 |
428d241688f00137fd700ee018e61dfa8cd2a95813f0a1ba0efdcef4fd408ecc
|
|
| MD5 |
0476c65c470434b248b10cf938188882
|
|
| BLAKE2b-256 |
2b082682b2b7587c67b98c825d2207cb190bb9fa1f8f7ee956418c8252ed55bb
|