SIMNet/README.md

30 lines
670 B
Markdown
Raw Permalink Normal View History

2023-05-01 13:33:39 +00:00
# Semi-Intransient Matrix Network
Modern API wrapper for Genshin Impact & Honkai: Star Rail built on asyncio and pydantic.
## Requirements
2023-07-20 08:19:09 +00:00
- Python 3.8+
2023-05-01 13:33:39 +00:00
- httpx
- Pydantic
## Example
2023-07-20 08:19:09 +00:00
A very simple example of how SIMNet would be used:
2023-05-01 13:33:39 +00:00
```python3
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](https://github.com/thesadru/genshin.py/): fork source