MetaCubeX/mihomo
A simple Python Pydantic model for Honkai: Star Rail parsed data from the Mihomo API.
Featured achievements
The project's latest awards
#1 Repository of the month
#1 Repository of the month
#2 Repository of the month
🚀 Typed Python client for Honkai: Star Rail player data
Turn raw Mihomo API responses into typed, autocompleted Python objects.
mihomo is a Python library that wraps the Mihomo API for Honkai: Star Rail, parsing player data into Pydantic models with full type hints and IDE autocompletion. It supports both V1 and V2 parsed data formats, making it easy to fetch and work with player info, characters, and assets.
✨ Highlights
- Dual format support: V1 (
StarrailInfoParsedV1) and V2 (StarrailInfoParsed) models - Async fetching:
client.fetch_user()andclient.fetch_user_v1()methods - Icon URL resolution:
client.get_icon_url()orreplace_icon_name_with_url=True - Duplicate character removal:
tools.remove_duplicate_character() - Character data merging:
tools.merge_character_data()for comparing snapshots - Data persistence: Built-in JSON and pickle serialization support
- Language support: Configurable via
Languageenum - Pydantic models: Full validation and type safety
💡 Why it matters
Using Pydantic models instead of raw dictionaries gives developers type safety, validation, and autocompletion when working with Honkai: Star Rail data. This is especially useful for building companion apps, stat trackers, or automation tools that rely on player data.
The library handles API complexity behind clean models, letting you focus on your application logic rather than data parsing.
#HonkaiStarRail #Python #Pydantic #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
Reverse engineer anything with agents, from app behavior down to native binaries.
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.