Models#

Base Model#

Data Objects returned by some Data API endpoints. The base class is.

class asyncdagpi.BaseDagpiObject(dictionary: Dict[str, Any])[source]#

Base AsyncDagpi object

Attributes

dict: Dict

raw_data() Dict[str, Any][source]#

Dictionary with Raw Data :returns Dict

All the below models are subclasses and will have all the same methods available to them.

WTP#

class asyncdagpi.WTP(data: Dict[str, Any])[source]#

A Dagpi PickupLine. A subclass of AsyncDagpi object

Attributes

dict: Dict

Dictionary with raw data (same returned by raw_data)

abilities: List[str]

A list containing the abilities the pokemon has

ascii: str

String containing ascii data of pokemons image

height: float

Float with height of pokemon

weight: float

Float with weight of pokemon

id: int

Integer with national dex id of pokemon

link: str

String containing pokemondb link for pokemon

name: str

String containing name of pokemon

answer: str

String containing url for answer image

question: str

String containing url for question image

PickupLine#

class asyncdagpi.PickupLine(data: Dict[str, str])[source]#

A Dagpi PickupLine

Attributes

dict: Dict

Dictionary with raw data (same returned by raw_data)

category: str

String containing Type of Pickup Line

line: str

String Containing Pickup Line

Headline#

class asyncdagpi.Headline(data: Dict[str, Any])[source]#

A Dagpi Headline

Attributes

dict: Dict

Dictionary with raw data (same returned by raw_data)

category: bool

Value stating whether headline is true or false

headline: str

String Containing headline

Captcha#

class asyncdagpi.Captcha(data: Dict[str, Any])[source]#

An asyncdagpi Captcha

Attributes

dict: Dict

Dictionary with raw data (same returned by raw_data)

image: str

url for image with solution

answer: str

string with captcha value

Typeracer#

class asyncdagpi.Typeracer(data: Dict[str, Any])[source]#

An asyncdagpi typeracer image

Attributes

dict: Dict

Dictionary with raw data (same returned by raw_data)

image: str

url for image with solution

sentence: str

string with sentence