Package: wynncraft
wynncraft-pythonA simple wrapper for the Wynncraft API, with caching.InstallRequires at least python 3.6pipinstallwynncraftInformationAll information returned in JSON format.For incorrect inputsValueErroris raised.To disable caching, setCACHE_TIMEto0ConstantsConstantTypeDescrpitionDefault ValueAPI_KEYStringYour API key. (Not required, but recommended)""CACHE_TIMENubmerHow long does a cached response is usable.300RATE_LIMITERBooleanEnables the rate limiter.TrueREGEX_CHECKBooleanChecks the syntax of the argument.TrueTIMEOUTNumberSpecifies a timeout in seconds for http request.10FunctionsGuildlistwynncraft.Guild.list()statswynncraft.Guild.stats("Wynncraft")Ingredientgetwynncraft.Ingredient.get("apple")listwynncraft.Ingredient.list()search# Valid queries: name, tier, level, skills, sprite, identifications, itemOnlyIDs, consumableOnlyIDswynncraft.Ingredient.search(query,arg)search_name# Same as Ingredient.search("name", arg)wynncraft.Ingredient.search_name(arg)search_tier# Same as Ingredient.search("tier", arg)wynncraft.Ingredient.search_tier(arg)search_level# Same as Ingredient.search("level", arg)wynncraft.Ingredient.search_level(arg)search_skills# Same as Ingredient.search("skills", arg)wynncraft.Ingredient.search_skills(arg)search_sprite# Same as Ingredient.search("sprite", arg)wynncraft.Ingredient.search_sprite(arg)search_identifications# Same as Ingredient.search("identifications", arg)wynncraft.Ingredient.search_identifications(arg)search_item_only_ids# Same as Ingredient.search("itemOnlyIDs", arg)wynncraft.Ingredient.search_item_only_ids(arg)search_consumable_only_ids# Same as Ingredient.search("consumableOnlyIDs", arg)wynncraft.Ingredient.search_consumable_only_ids(arg)Itemdatabase_category# Valid categories: all, boots, bow, bracelet, chestplate, dagger, helmet, leggings, necklace, ring, spear, wandwynncraft.Item.database_category(all)database_searchwynncraft.Item.database_search("Idol")Leaderboardguildwynncraft.Leaderboard.guild(timeframe)playerwynncraft.Leaderboard.player(timeframe)pvpwynncraft.Leaderboard.pvp(timeframe)Networkserver_listwynncraft.Network.server_list()player_sumwynncraft.Network.player_sum()Playerstatswynncraft.Player.stats("Salted")uuidwynncraft.Player.uuid("Salted")Recipegetwynncraft.Recipe.get("Boots-1-3")listwynncraft.Recipe.list()search# Valid queries: type, skill, level, durability, healthOrDamage, duration, basicDurationwynncraft.Recipe.search(query,arg)search_type# Same as Recipe.search("type", arg)wynncraft.Recipe.search_type(arg)search_skill# Same as Recipe.search("skill", arg)wynncraft.Recipe.search_skill(arg)search_level# Same as Recipe.search("level", arg)wynncraft.Recipe.search_level(arg)search_durability# Same as Recipe.search("durability", arg)wynncraft.Recipe.search_durability(arg)search_health_or_damage# Same as Recipe.search("healthOrDamage", arg)wynncraft.Recipe.search_health_or_damage(arg)search_duration# Same as Recipe.search("duration", arg)wynncraft.Recipe.search_duration(arg)search_basic_duration# Same as Recipe.search("basicDuration", arg)wynncraft.Recipe.search_basic_duration(arg)Searchnamewynncraft.Search.name("Salted")Territorylistwynncraft.Territory.list()ExtraWynncraft v3 API endpointsAfter official documentation, these will be moved to the appropriate classes. Undocumented, subject to name change or removal.These return lists not dicts.latest_newswynncraft.Extra.latest_news()latest_tweetswynncraft.Extra.latest_tweets()Wynntils API endpoints (not official)Undocumented, subject to name change or removal.gathering_spotswynncraft.Extra.gathering_spots()server_listwynncraft.Extra.server_list()For more documentation see theWynncraft API documentation.