Corkus.py follows semantic versioning. Due to ever changing nature of Wynncraft API only the newest version is supported. Please ensure that you are always using the newest version.
.. py:currentmodule:: corkus
Corkus.py is no longer maintained. For more information please see: README.
- Add
DeprecationWarning
to module__init__
- Add deprecation notices to
README.MD
anddocs/index.rst
- Update documentation front page.
- Update documentation guides - :ref:`discord`, :ref:`quickstart`
- Other minor documentation fixes.
We are making changes due to the 2.0.1 API update
which brings some changes around player classes. We have also changed initialization procedure so client constructor doesn't need to
be called in async context anymore. We are introducing a concept like other async libraries. You now need to call start()
function to initialize the client.
:bdg-danger-line:`BREAKING` :py:class:`Corkus` initialization procedure have been changed. You now need to call :py:func:`Corkus.start() <Corkus.start>` to initialize the client.
corkus = Corkus(timeout=60) async def main(): await corkus.start() player = await corkus.player.get("MrBartusekXD") print(player.best_character.combat.level) # 102 await corkus.close()
:bdg-danger-line:`BREAKING` Due to recent API changes
Character.name
(formerly:PlayerClass.name
) was removed.:bdg-danger-line:`BREAKING` Ability to pass custom
ClientSession
to :py:class:`Corkus` was removed.:bdg-danger-line:`BREAKING` :py:class:`Corkus` configuration option
ratelimit_enable
andcache_enable
were renamed todisable_ratelimit
anddisable_cache
respectively. Their function were reversed and are both now respectively disabled by default.:bdg-warning-line:`Deprecated`
Player.classes
andPlayer.best_class
were deprecated, use :py:attr:`Player.characters <corkus.objects.Player.characters>` and :py:attr:`Player.best_character <corkus.objects.Player.best_character>` instead. These will now return instancies of :py:class:`Character <corkus.objects.Character>` which are identical toPlayerClass
excluding thename
property.PlayerClass
was renamed to :py:class:`Character <corkus.objects.Character>` to match new API schema.ClassType
was renamed to :py:class:`CharacterType <corkus.objects.CharacterType>` to match new API schema.Add :py:attr:`uuid <corkus.objects.Character.uuid>` property to :py:class:`Character <corkus.objects.Character>` (formerly:
PlayerClass
).Project now uses
characters
instead ofclasses
in documentation.Default request timeout was changed to
60
seconds.Add support for Python 3.11.
Update dependencies. You can now use
aiohttp 3.8.x
andiso8601 1.x
.Fix :py:exc:`CorkusTimeoutError <corkus.errors.CorkusTimeoutError>` returning invalid url.
.. py:currentmodule:: corkus.objects
- :bdg-danger-line:`BREAKING` Due to recent API changes
PlayerStatistics.chests_found
andClassStatistics.chests_found
were removed. - :bdg-danger-line:`BREAKING` Value of :py:attr:`ServerType.REGULAR` has been changed from
WC
toREGULAR
. - :bdg-danger-line:`BREAKING`
ServerType.YOUTUBE
enum key is now named :py:attr:`ServerType.MEDIA` and it's value has been changed fromYT
toMEDIA
. - Add warnings for broken properties in :py:class:`PlayerSoloRanking` and :py:class:`PlayerOverallRanking`.
- Fix a bug where :py:exc:`CorkusTimeoutError <corkus.errors.CorkusTimeoutError>` will be thrown without timeout property when no custom timeout is set (#13)
- Add :py:func:`get_member() <Guild.get_member>` function to :py:class:`Guild`.
- Add :py:attr:`rank <Member.rank>` property to :py:class:`Member`.
- Add
best_class <Player.best_class>
property to :py:class:`Player`. - :py:func:`OnlinePlayers.get_player_server` and :py:func:`OnlinePlayers.is_player_online` now accept :py:class:`Member` as argument.
- Support Python 3.10
- Add new server type :py:attr:`ServerType.OTHER` to :py:class:`ServerType`.
- Fix :py:attr:`Guild.level` and :py:attr:`LeaderboardGuild.level` documentation.
- Standardize documentation of :py:class:`Player` and :py:class:`PartialPlayer` properties.
- Fix :py:class:`PartialOnlinePlayer`
__repr__
- 🎉 first release!