Go to file
2023-05-05 22:15:40 +08:00
simnet Add Daily Reward Client 2023-05-05 22:15:40 +08:00
tests Add Star Rail Client 2023-05-02 01:02:53 +08:00
.deepsource.toml 🎉 Initial commit 2023-05-02 01:02:47 +08:00
.gitignore 🎉 Initial commit 2023-05-02 01:02:47 +08:00
README.md 📝 Add README.md 2023-05-02 01:02:53 +08:00
requirements.txt 🎉 Initial commit 2023-05-02 01:02:47 +08:00

Semi-Intransient Matrix Network

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

Requirements

  • Python 3.9+
  • 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