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.3.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.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: migate-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 c59dfca110af9cdcdb56b22c70745c9f2a65a7b401413d2419df7b6c597297c5
MD5 9db175d3877519cbec1154e3857bca16
BLAKE2b-256 e43ed715fe8de0d644dc4c8f62607b0a19597ef2c4ab737a22aaee61187de46b

See more details on using hashes here.

File details

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

File metadata

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

Hashes for migate-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 adaabbd4df026190c4bd55b8d62ff43f43046bcda83aecab4c3ee6a4e9cc0a30
MD5 487fa9c7ffd661c3a740d2319ec4e087
BLAKE2b-256 92587f43178a6e0399459f1530f2e8471b046799c65de5141389dd9a7db27963

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