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
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
- dict:
Logo#
- class asyncdagpi.Logo(data: Dict[str, Any])[source]#
A Dagpi Logo Object. A subclass of asyncdagpi.BaseDagpiObject
Attributes
- dict:
Dict
Dictionary with raw data (same returned by raw_data)
- question:
str
String containing url of question image
- answer:
str
String containing url of answer image
- brand:
str
String containing name of brand
- clue:
str
String containing hint to use for question
- easy:
boolean
Boolean that shows wether question was easy
- hint:
str
String containing hint
- wiki_url:
str
String containing Wikipedia URL for brand
- dict: