qmetrics.net

mihomo

Python Pydantic models for Honkai Star Rail API data

GamingNo commits in 18+ monthsDesktop/CLI app

mihomo has had no code changes for over 18 months (last commit 1 year ago).

mihomo screenshot

mihomo provides typed Python models and a small client for fetching and parsing Honkai: Star Rail player data from the public Mihomo API.

Overview

The package wraps parsed Honkai: Star Rail profile data in Pydantic models so editors get type hints and autocompletion. It is aimed at developers building tools that consume the Mihomo HTTP API rather than end users playing the game.

Two parsed formats are supported. V1 data is retrieved with fetch_user_v1 and modeled under mihomo.models.v1; V2 uses fetch_user with models in mihomo.models. Callers can request V2 responses with icon names already replaced by asset URLs to avoid extra lookup steps.

Helper utilities under mihomo.tools cover tasks such as deduplicating characters and merging character records. Fetched structures can be persisted via pickle or JSON for local processing pipelines.

Install the library with standard Python packaging from the published package name mihomo, then instantiate the client and pass a user identifier to retrieve structured Star Rail account information.

Key features

  • Pydantic-typed API responses
  • V1 and V2 parsed data layouts
  • Client fetch helpers for users
  • Optional inline asset URL replacement
  • Character merge and dedupe tools
  • Pickle and JSON persistence examples
  • Modular model package layout
  • Autocompletion-friendly type hints

Use cases

  • Star Rail companion dashboards
  • Account stat analysis scripts
  • Caching parsed player profiles
  • Building bots over Mihomo API data
  • Teaching typed API clients in Python

Tags

Similar software

Godot

Cross-platform 2D and 3D game engine

Godot Engine lets creators build 2D and 3D games from one editor and export to desktop, mobile, web, and console targets through publishers.

★ 120.9k⟳ yesterdayMIT
Open Source Alternative to:Unity

Project AIRI

Self-hosted AI VTuber and digital companion platform

Project AIRI builds a cyber companion with realtime voice chat, VRM and Live2D avatars, and optional game integrations for web, desktop, and mobile.

★ 51.8k⟳ yesterdayMIT

Bevy Engine

Rust game engine with ECS architecture

Bevy Engine is a data-driven Rust game engine for 2D and 3D work. It emphasizes modularity, parallel execution, and fast iteration while the project remains under active development.

★ 50k⟳ yesterdayApache-2.0
Open Source Alternative to:Unity

Sunshine

Self-hosted Moonlight game streaming host with hardware encoding

Sunshine runs on your machine as a self-hosted streaming host for Moonlight clients, capturing the desktop and encoding video with GPU or software paths.

★ 44k⟳ todayGPL-3.0
GamingSelf-hostable

Claude Code Game Studios

Claude Code template for AI-assisted game development

Claude Code Game Studios is a project template that turns Claude Code into a structured game studio workflow. It asks design questions, writes a brief, and builds browser prototypes you can grow into full projects.

★ 41.2k⟳ 18 days agoMIT

Phaser

HTML5 2D game framework with Canvas and WebGL

Phaser is a JavaScript and TypeScript framework for browser games on desktop and mobile, with scene APIs, physics, animations, and loaders. Games can target embed platforms or wrap for native stores via third-party tooling

★ 40.8k⟳ 3 months agoMIT