Skip to content

Releases: Fortnite-API/py-wrapper

v3.0 Wrapper Rewrite

30 Aug 14:01
Compare
Choose a tag to compare

This release encompasses the Version 3.0 bump of the Fortnite API Python wrapper. This major transition gives the library a complete facelift, focusing on asynchronous functionality while still supporting the synchronous library you've come to know.

Features and Additions

  • Complete overhaul of every object, method, and property in the library. Now, fetching information from the API is done through methods on a Client and SyncClient class. This is to make the library easier to use and maintain, while still being welcoming for new programmers.
  • Complete overhaul of documentation. This includes a major shift to readthedocs powered by Sphinx for easier documentation.
  • Speed improvements for large endpoints, such as fetching all available game cosmetics at once.
  • Strictly type hinted with high code standards.

Migration & Getting started

Version 3.0 introduces breaking changes, so existing projects will need updates. To assist you, we've created a migration guide, to help make the transition as smooth as possible.

For new users, the new documentation provides everything you need to get started. Visit it at https://fortnite-api.readthedocs.io/.

Here's a quick example of how the new Client works:

import asyncio
import fortnite_api 

async def main() -> None:
    async with fortnite_api.Client() as client:
        all_cosmetics: fortnite_api.CosmeticsAll = await client.fetch_cosmetics_all()

        for br_cosmetic in all_cosmetics.br:
            print(br_cosmetic.name) 

if __name__ == "__main__":
    asyncio.run(main())

Fix offer image being optional

08 Aug 22:44
Compare
Choose a tag to compare
  • ShopMaterialInstanceImages.offer_image_url is now optional

Fix issue with new CosmeticCompatibleModes

24 May 14:14
Compare
Choose a tag to compare
  • Implemented a temporary fix, to handle new values for CosmeticCompatibleMode

New Shop Tile Sizes

03 May 19:47
Compare
Choose a tag to compare
  • Added new QUAD_WIDE and PENTA_WIDE ShopTileSizes

Update shop tile sizes

18 Apr 07:52
Compare
Choose a tag to compare
  • Update the values of the ShopTileSize, since with the latest shop rotation all have been changed

Fix issue with BrCosmeticType Booster value

29 Mar 11:38
Compare
Choose a tag to compare
  • BrCosmeticType booster cosmetic type got an inproper enum value that has been fixed

Add support for LEGO and Car Boost cosmetics

25 Mar 18:42
Compare
Choose a tag to compare
  • Add support for LEGO Builds, LEGO Decor Bundles and Car Boosts

Add new Cosmetic types and Rarities

06 Mar 20:48
Compare
Choose a tag to compare
  • Added lamborghini rarity
  • Added JAM_TRACK, AURA and TRAIL BrCosmeticType
  • Add support for newer aiohttp versions
  • Add ROCKET_RACING and FESTIVAL CosmeticCompatibleMode
  • Default to NORMAL ShopTileSize. This is the case when Epic messed it up and use "nomal" instead of "normal"
  • Fixed an issue, when shop is empty

Add new Cosmetics and new cosmetics endpoint

07 Jan 21:59
Compare
Choose a tag to compare
  • Add support for cosmetic and new cosmetics endpoint
  • Implement enum for shop material primary mode

Fix BrCosmetic

07 Jan 02:25
Compare
Choose a tag to compare
  • Fix BrCosmetic not inherit BaseCosmetic which caused many fields not being available