Skip to content

v6.0.0a1

Pre-release
Pre-release
Compare
Choose a tag to compare
@Galarzaa90 Galarzaa90 released this 28 Apr 02:32
· 157 commits to main since this 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 from OnlineCharacter.
    • Removed category_icon from NewsEntry and News.
    • Added big_icon_url and small_icon_url to NewsCategory
    • Leaderboard.page renamed to current_page.
    • Highscores.page renamed to current_page.
    • Removed owner, world, status and type from GuildHouse.
    • Removed name from Death.
    • Removed owner, status and type from CharacterHouse.
    • Auction renamed to AuctionDetails and is no longer a subclass of AuctionEntry.
    • AuctionEntry renamed to Auction.
    • CharacterBazaar.page renamed to current_page.
    • NewsArchive.categories and NewsArchive.types are now sets instead of lists.
    • Character.account_status replaced with is_premium.
    • Renamed DisplayImage to ItemEntry.
    • Renamed DisplayMount to MountEntry.
    • Renamed DisplayOutfit to OutfitEntry.
    • Renamed DisplayFamiliar to FamiliarEntry.
    • Renamed page to current_page, results to results_count, and fully_fetched to is_fully_fetched in ItemSummary, Mounts, Familiars and Outfits.
    • Renamed CMPostArchive.page and CMPostArchive.posts to current_page and entries respectively.
    • Renamed Killerto DeathParticipant
    • Renamed ForumBoard.threads to entries.
    • Renamed ForumThread.posts to entries.
    • Added thread_starter_deleted to ThreadEntry.
    • ForumThread.previous_topic_number and ForumThread.next_topic_number may be None instead of 0.
  • Renamed Category to HighscoresCategory.
  • Renamed BattlEyeTypeFilter to AuctionBattlEyeFilter.
  • Renamed VocationFilter to HighscoresProfession.
  • Renamed BattlEyeHighscoresFilter to HighscoresBattlEyeType.
  • Renamed VocationAuctionFilter to AuctionVocationFilter.
  • Renamed VocationSpellFilter to SpellVocationFilter.
  • Renamed SkillFilter to AuctionSkillFilter.
  • 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.