mijiaAPI

v5.0.0 safe
2.5
Low Risk

A Python API for Xiaomi Mijia

📦 Package Quality Overall: Low (2.8/10)

○ Low Test Suite 1.0

No test suite detected

  • No test files or test-runner configuration detected
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (2346 chars)
○ Low Contributing Guide 2.0

No contributing guide or governance files found

  • No CONTRIBUTING, CODE_OF_CONDUCT, or governance files found
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 63 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

⚠ Outbound Network Calls score 7.5

Found 5 network call pattern(s)

  • elf): self.session = requests.Session() self.session.headers.update({ "User-
  • } service_ret = requests.get(self.service_login_url, headers=headers) service_da
  • } login_ret = requests.get(url, headers=headers) login_data = self._handle_ret
  • } session = requests.Session() try: lp_ret = session.get(login_data
  • {cache_file}") response = requests.get(device_url, params={"type": spec_type}, headers={ "U
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • hashlib.sha256() m.update(base64.b64decode(bytes(ssecret, "utf-8"))) m.update(base64.b64decode(byte
  • cret, "utf-8"))) m.update(base64.b64decode(bytes(nonce, "utf-8"))) base64_bytes = base64.b64encode(
  • d, payload): r = ARC4.new(base64.b64decode(password)) r.encrypt(bytes(1024)) return base64.b64e
  • d, payload): r = ARC4.new(base64.b64decode(password)) r.encrypt(bytes(1024)) return r.encrypt(b
  • s(1024)) return r.encrypt(base64.b64decode(payload)) def decrypt(ssecurity, nonce, payload): decry
  • - value (str): 统计值(通常需要用 eval() 解析) - time (int): 时间戳 已知问题:
✓ Shell / Subprocess Execution

No shell execution patterns detected

✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: do1e.cn>

✓ Suspicious Page Links

All external links appear legitimate

⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with mijiaAPI
Build a simple Python application using the mijiaAPI package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!