|
5 | 5 | from contextlib import asynccontextmanager |
6 | 6 | from typing import List, Optional, Set |
7 | 7 |
|
| 8 | +import uvicorn |
8 | 9 | from fastapi import Depends, FastAPI, Path, Query, Response |
9 | 10 | from starlette import status |
10 | 11 | from typing_extensions import Annotated |
11 | 12 |
|
12 | 13 | import tibiapy |
13 | 14 | from tibiapy.enums import (AuctionBattlEyeFilter, AuctionOrderBy, AuctionOrderDirection, AuctionSearchType, |
14 | | - AuctionSkillFilter, AuctionVocationFilter, HighscoresBattlEyeType, HighscoresCategory, |
15 | | - HighscoresProfession, HouseOrder, HouseStatus, HouseType, NewsCategory, NewsType, PvpTypeFilter, |
16 | | - SpellGroup, SpellSorting, SpellType, SpellVocationFilter) |
| 15 | + AuctionSkillFilter, AuctionVocationFilter, HighscoresBattlEyeType, HighscoresCategory, |
| 16 | + HighscoresProfession, HouseOrder, HouseStatus, HouseType, NewsCategory, NewsType, |
| 17 | + PvpTypeFilter, |
| 18 | + SpellGroup, SpellSorting, SpellType, SpellVocationFilter) |
17 | 19 | from tibiapy.models import (Auction, AuctionFilters, BoostableBosses, BossEntry, Character, CharacterBazaar, Creature, |
18 | 20 | CreatureEntry, CreaturesSection, EventSchedule, ForumBoard, ForumSection, ForumThread, |
19 | 21 | Guild, GuildWars, |
@@ -417,4 +419,9 @@ async def get_auction( |
417 | 419 | fetch_mounts=fetch_mounts, fetch_outfits=fetch_outfits, |
418 | 420 | fetch_familiars=fetch_familiars) |
419 | 421 |
|
| 422 | + |
420 | 423 | # endregion |
| 424 | + |
| 425 | + |
| 426 | +if __name__ == "__main__": |
| 427 | + uvicorn.run(app=app) |
0 commit comments