itsuchur / aiowallhaven

aiowallhaven is an asynchronous API wrapper for https://wallhaven.cc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aiowallhaven

aiowallhaven is an asynchronous API wrapper for popular wallpaper hosting site wallhaven.cc.

Basic Usage:

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())

Prerequisites

The following dependencies are required:

  • Python 3.10
  • aiohttp library
  • aiolimiter library

Installation

$ pip install aiowallhaven

Documentation

The documentation is available at readthedocs.io.

License

aiowallhaven is developed and distributed under the MIT license.

About

aiowallhaven is an asynchronous API wrapper for https://wallhaven.cc

License:MIT License


Languages

Language:Python 100.0%