Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simnet-0.1.15.tar.gz (53.5 kB view hashes)

Uploaded Source

Built Distribution

simnet-0.1.15-py3-none-any.whl (79.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page