mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-24 07:10:38 +00:00
2a86d10640
- Test multiple clients - Load testing configuration file using load_dotenv - Add `requirements.dev.txt` file |
||
---|---|---|
simnet | ||
tests | ||
.deepsource.toml | ||
.gitignore | ||
README.md | ||
requirements.dev.txt | ||
requirements.txt |
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
- genshin.py: fork source