An async API wrapper for enka.network written in Python.
GPL-3.0 License
enka.py is an async API wrapper for enka.network written in Python. You can find the API docs for Enka Network here. Developing something for Hoyoverse games? You might be interested in other API wrappers written by me.
aiofiles
, aiohttp
, and asyncio
, suitable for Discord bots.I know it's annoying that the project is named enka-py but the package is named enka-api, but package name enka-py was already taken on PyPI.
# poetry
poetry add enka-api
# pip
pip install enka-api
import enka
import asyncio
async def main() -> None:
async with enka.GenshinClient(enka.gi.Language.ENGLISH) as client:
response = await client.fetch_showcase(901211014)
print(response.player.nickname)
print(response.characters[0].name)
asyncio.run(main())
Read the wiki to learn more about on how to use this wrapper.
Whether you want to make any bug reports, feature requests, or contribute to the wrapper, simply open an issue or pull request in this repository. If GitHub is not your type, you can find me on Discord, my username is @seria_ati.