Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...

Tool Corkus.py - Python wrapper for Wynncraft API

Discussion in 'Your Work' started by MrBartusek, Sep 9, 2021.

Thread Status:
Not open for further replies.
  1. MrBartusek

    MrBartusek The Elon Musk of bad ideas VIP

    Messages:
    8
    Likes Received:
    24
    Trophy Points:
    47
    Guild:
    Minecraft:
    [​IMG]
    Hey, I just released my asynchronous Python wrapper for Wynncraft API!

    Why would you even need a wrapper?

    The most common way of accessing API is manually calling an endpoint using request, aiohttp or other similar libraries. Then, parsing returned JSON and accessing properties via square brackets. This solution works but is annoying and time-consuming. Instead of messing with the API directly, you can use Corkus!

    Why Corkus.py

    Corkus has all of the tools that you need to work with the API!
    • It's asynchronous, which makes it much faster and viable when working with async projects like Discord bots.
    • Every single property is type-hinted (PEP 484) which means, you can run mypy or Pylance (VS Code Python) to use IntelliSense:
      [​IMG]
    • Proper rate limit handling and response caching.
    • 100% coverage of the Public Wynncraft API.
    • Abstraction using Partial Objects.
    • Excellent Documentation.
    Comparison with wynncraft-python, wynn.py and Pynn

    [​IMG]

    Start using Corkus.py
     
    Last edited: Oct 15, 2021
    Tsuneo, luckeyLuuk, Thega and 14 others like this.
  2. Fox

    Fox Fox

    Messages:
    998
    Likes Received:
    2,287
    Trophy Points:
    148
    Guild:
    It was fun participating on this project! I hope people like the moving cog logo, I wanted to make my own rendition of Corkus with it! Make sure to check the logo on the documentation too!
     
    Tsuneo, luckeyLuuk and MrBartusek like this.
  3. Violet Knight

    Violet Knight Aspiring front-end developer HERO

    Messages:
    2,537
    Likes Received:
    7,606
    Trophy Points:
    209
    Minecraft:
    I don't know what all the coding stuff means, but I like the logo very much!
     
  4. TrapinchO

    TrapinchO retired observer of the wiki VIP+ Featured Wynncraftian

    Messages:
    4,662
    Likes Received:
    6,601
    Trophy Points:
    217
    Minecraft:
    From a quick glance it looked amazing!
     
    fishcute, Fox and MrBartusek like this.
  5. Raw

    Raw Well-Known Adventurer VIP+

    Messages:
    18
    Likes Received:
    14
    Trophy Points:
    48
    Guild:
    Minecraft:
    I just started a project now this is a thing, amazing, basically saving my life lol.
     
    MrBartusek and Fox like this.
  6. MrBartusek

    MrBartusek The Elon Musk of bad ideas VIP

    Messages:
    8
    Likes Received:
    24
    Trophy Points:
    47
    Guild:
    Minecraft:
    Thanks! Be sure to DM me or create an issue if you have any problems!
     
    Fox likes this.
  7. IzzSt

    IzzSt Nephilim CHAMPION

    Messages:
    102
    Likes Received:
    45
    Trophy Points:
    55
    Guild:
    Minecraft:
    cokrus py zzz
     
    Fox likes this.
  8. Saya

    Saya you win at uwynn HERO

    Messages:
    2,930
    Likes Received:
    6,871
    Trophy Points:
    209
    Guild:
    Minecraft:
    holy shit
     
    MrBartusek likes this.
  9. Linnyflower

    Linnyflower ironman btw Item Team HICH Master CHAMPION

    Messages:
    3,467
    Likes Received:
    4,001
    Trophy Points:
    194
    Guild:
    Minecraft:
    omg why have i not seen this
     
    Fox and MrBartusek like this.
  10. MrBartusek

    MrBartusek The Elon Musk of bad ideas VIP

    Messages:
    8
    Likes Received:
    24
    Trophy Points:
    47
    Guild:
    Minecraft:
    I just released version 1.1.0 which brings some minor fixes to the library!
     
    Fox and TrapinchO like this.
  11. MrBartusek

    MrBartusek The Elon Musk of bad ideas VIP

    Messages:
    8
    Likes Received:
    24
    Trophy Points:
    47
    Guild:
    Minecraft:
    Hey, I just released version 1.2.0 which adds missing properties as well as some QoL stuff. Corkus also now officially support Python 3.10 from now on.
     
    Fox likes this.
  12. byBackfish

    byBackfish Well-Known Adventurer CHAMPION

    Messages:
    13
    Likes Received:
    11
    Trophy Points:
    48
    Guild:
    Minecraft:
    Actually pretty interesting. Thanks for sharing!
     
    MrBartusek likes this.
Thread Status:
Not open for further replies.