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)
# 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.1.tar.gz (8.0 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.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: migate-1.0.1.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

Hashes for migate-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8a66583b52b67839ddda367496767cb099532ce85d430ff6d9a169701668d194
MD5 be610b97d5dd279aa01e396222132c72
BLAKE2b-256 50c11fd814c476c6bf490bd04d712b5c5a9e71beabdb1061440bb88d0073c832

See more details on using hashes here.

File details

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

File metadata

  • Download URL: migate-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1dbdfe5630026a3a2eb92426411672614c4ee43ce154eeef294f5ca0dccb01b
MD5 4710cfb9c3c256c47e4be454db4a865b
BLAKE2b-256 f248bc02935ca55df1ff8fef5446f1d5d9f59e089eba8945caeb65dd39adb734

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