Go to file
2024-09-10 13:30:19 +08:00
.github/workflows 👷 Fix action download apk 2024-03-12 22:28:14 +08:00
compiler/ds 👷 Fix action download apk 2024-03-12 22:28:14 +08:00
simnet 🐛 Fix starrail act calendar model 2024-09-10 13:30:19 +08:00
tests Support detailed Genshin character endpoint 2024-08-22 22:48:46 +08:00
.deepsource.toml 🔧 Add tests file patterns in .deepsource.toml 2023-06-09 11:23:58 +08:00
.gitignore support auto update ds 2023-09-21 17:12:47 +08:00
LICENSE 📄 Add license 2023-05-09 12:21:15 +08:00
pyproject.toml 🔖 Bump Version to v0.1.23 2024-08-10 18:47:06 +08:00
README.md 📝 Update README.md 2023-07-20 16:19:09 +08:00
requirements.dev.txt Update test 2023-05-08 09:21:32 +08:00
requirements.txt 🎉 Initial commit 2023-05-02 01:02:47 +08:00
setup.py 💄 Format with black 24.x.x 2024-03-29 21:48:07 +08:00

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