aiowallhaven is an asynchronous API wrapper for popular wallpaper hosting site wallhaven.cc.
import asyncio
from aiowallhaven import WallHavenAPI
wallhaven = WallHavenAPI("Your-API-key")
async def wallpaper_details():
request = await wallhaven.get_wallpaper("5758y8")
print(request)
loop = asyncio.get_event_loop()
loop.run_until_complete(wallpaper_details())
The following dependencies are required:
- Python 3.10
- aiohttp library
- aiolimiter library
$ pip install aiowallhaven
The documentation is available at readthedocs.io.
aiowallhaven is developed and distributed under the MIT license.