MetaCubeX/mihomo ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Python library for Honkai Star Rail data from the Mihomo API.
I want an easy to use client that can fetch a player profile by UID, return strongly typed Pydantic models, and work with both the older v1 response and the newer default response. It should let me set the language, fetch data asynchronously, and optionally replace icon names with full image URLs so I do not have to look them up myself every time.
Please include the main data models for player, characters, and related profile details, plus a couple of helper functions for cleaning up duplicate character entries and merging old and new character data. Make it feel nice to use in Python with type hints and autocomplete support, and add a few simple examples showing how to call it and save or load the parsed data as JSON or pickle.
If you need current API details, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit