v6.0.0a1
Pre-release
Pre-release
Changes
- Python 3.7 and below no longer supported.
- All models are now Pydantic models, for better data validation, serialization and deserialization.
- Models no longer contain methods to parse content, these have been moved to dedicated parser classes.
- The location of models inside the module changed, so all imports need to be modified.
- Model changes:
- Removed
world
fromOnlineCharacter
. - Removed
category_icon
fromNewsEntry
andNews
. - Added
big_icon_url
andsmall_icon_url
toNewsCategory
Leaderboard.page
renamed tocurrent_page
.Highscores.page
renamed tocurrent_page
.- Removed
owner
,world
,status
andtype
fromGuildHouse
. - Removed
name
fromDeath
. - Removed
owner
,status
andtype
fromCharacterHouse
. Auction
renamed toAuctionDetails
and is no longer a subclass ofAuctionEntry
.AuctionEntry
renamed toAuction
.CharacterBazaar.page
renamed tocurrent_page
.NewsArchive.categories
andNewsArchive.types
are now sets instead of lists.Character.account_status
replaced withis_premium
.- Renamed
DisplayImage
toItemEntry
. - Renamed
DisplayMount
toMountEntry
. - Renamed
DisplayOutfit
toOutfitEntry
. - Renamed
DisplayFamiliar
toFamiliarEntry
. - Renamed
page
tocurrent_page
,results
toresults_count
, andfully_fetched
tois_fully_fetched
inItemSummary
,Mounts
,Familiars
andOutfits
. - Renamed
CMPostArchive.page
andCMPostArchive.posts
tocurrent_page
andentries
respectively. - Renamed
Killer
toDeathParticipant
- Renamed
ForumBoard.threads
toentries
. - Renamed
ForumThread.posts
toentries
. - Added
thread_starter_deleted
toThreadEntry
. ForumThread.previous_topic_number
andForumThread.next_topic_number
may beNone
instead of0
.
- Removed
- Renamed
Category
toHighscoresCategory
. - Renamed
BattlEyeTypeFilter
toAuctionBattlEyeFilter
. - Renamed
VocationFilter
toHighscoresProfession
. - Renamed
BattlEyeHighscoresFilter
toHighscoresBattlEyeType
. - Renamed
VocationAuctionFilter
toAuctionVocationFilter
. - Renamed
VocationSpellFilter
toSpellVocationFilter
. - Renamed
SkillFilter
toAuctionSkillFilter
. - Added `ForumSection`` model and its respective parser, to fetch a list of board entries.
- Removed
get_url
class methods from all models, replaced by functions in the urls package. - Fixed
Character
account badges not being parsed properly.