Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 670 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 670 Bytes

Semi-Intransient Matrix Network

Modern API wrapper for Genshin Impact & Honkai: Star Rail built on asyncio and pydantic.

Requirements

  • Python 3.8+
  • httpx
  • Pydantic

Example

A very simple example of how SIMNet would be used:

import asyncio
import simnet

async def main():
    cookies = {} # write your cookies
    player_id = 123456789
    async with simnet.StarRailClient(cookies, player_id=player_id) as client:
        data = await client.get_starrail_user()
        print(f"Player has a total of {data.stats.avatar_num} characters")

asyncio.run(main())

Credits