Skip to main content

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)
# {'servicedata': {'nonce', 'ssecurity', 'cUserId', 'psecurity'}, 'cookies': {'serviceToken/popRunToken/new_bbs_serviceToken' ...}}
print(service)

returns: {'servicedata': {'nonce', 'ssecurity', 'cUserId', 'psecurity'}, 'cookies': {'serviceToken/popRunToken/new_bbs_serviceToken' ...}}


MIT License

Project details


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.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

migate-1.0.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file migate-1.0.0.tar.gz.

File metadata

  • Download URL: migate-1.0.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for migate-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8c0f882f2a78ad144ac2f0b01ffa077eaa249b88edfca5fe7278cfbe794625a4
MD5 ae875f211dc9aff9cfde3a74b40261b2
BLAKE2b-256 5a2d69f250033c93bf6792e423ab8500f59435491b48c4b01eae95ed8f68f750

See more details on using hashes here.

File details

Details for the file migate-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: migate-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for migate-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38fa9f93b2209856c5ea5e7718cc5701d05f14789e599499a5e1a9dc38ff0435
MD5 fa0f1dd3497b1bdf8789a2ea91bccfe1
BLAKE2b-256 11358e32d0e088eafbedf9a44b4a6b549fa559e3907fddffa42c3667ca518df3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page