Skip to content

Releases: mathsman5133/coc.py

v3.6.0

17 May 16:51
e72a313

Choose a tag to compare

Bugs Fixed:

  • Issues causing the documentation to not build properly have been fixed.
  • Fixed a few spelling errors in the documentation.

Additions:

  • Added coc.Client.ip to manually overwrite the IP address used for generating API keys. This is especially useful for using the API with a proxy.

v3.5.3

14 May 18:23
a477898

Choose a tag to compare

Bugs Fixed:

  • coc.Badge.url and :coc.Icon.url now use differently sized fallbacks if the default URL is not available. The same is true if coc.Badge.save or coc.Icon.save are called without the optional size parameter
  • corrected the default value for the league_id parameter of coc.Client.get_seasons to point at Legends league and fixed a type hint in coc.Client.get_season_rankings as well as a few doc strings

v3.5.2

27 Apr 17:31
3e9d95b

Choose a tag to compare

Additions:

  • added the option to change the base url of the API in coc.Client to allow an easier use of proxies
  • added the new events coc.PlayerEvents.equipment_change and coc.PlayerEvents.active_equipment_change
  • added the new names for builder base related events to coc.ClanEvents and coc.PlayerEvents
  • added the change in the api model for ClanMembers. coc.ClanMember now has a new attribute town_hall which is the town hall level.

Fixes:

  • Fixed an issue with the renaming of versus_trophies to builder_base_trophies and similar name changes in the event related code

v3.5.1

27 Apr 16:53
46d66bd

Choose a tag to compare

Additions:

  • added the option to change the base url of the API in coc.Client to allow an easier use of proxies
  • added the new events coc.PlayerEvents.equipment_change and coc.PlayerEvents.active_equipment_change
  • added the new names for builder base related events to coc.ClanEvents and coc.PlayerEvents
  • added the change in the api model for ClanMembers. coc.ClanMember now has a new attribute town_hall which is the town hall level.

Fixes:

  • Fixed an issue with the renaming of versus_trophies to builder_base_trophies and similar name changes in the event related code

v3.4.2: April 2024 update

20 Apr 10:59
898ea49

Choose a tag to compare

Additions:

  • added the new Angry Jelly pet to coc.PETS_ORDER
  • updated static data to reflect the April 2024 update

v3.4.1

31 Mar 12:43
2dd3c98

Choose a tag to compare

Additions:

  • added the missing achievements to coc.ACHIEVEMENT_ORDER
  • updated static data to reflect the March 26th balance patch

v3.4.0: Merge pull request #229 from mathsman5133/fix/3.4.0

14 Mar 18:17
721d19e

Choose a tag to compare

Additions:

  • added the new Fireball equipment to coc.EQUIPMENT

Bugs Fixed:

  • Fixed an oversight that caused static equipment data not to be updated, which in turn resulted in some newer
    equipment pieces not showing up in coc.Player.equipment if game data was enabled
  • Fixed some errors in the docs

v3.3.1: Merge pull request #227 from mathsman5133/fix/http-error

01 Mar 08:04
8daa016

Choose a tag to compare

v3.3.1

Bugs Fixed:

  • Fixed a behaviour where in some cases (when the API responds with an unusual status code), coc.py would not
    properly raise an HTTPException

v3.3.0: February 2024 Update

29 Feb 22:39
8eb2142

Choose a tag to compare

Additions:

  • Added dedicated enums for elixir/dark elixir troops and spells: coc.ELIXIR_TROOP_ORDER,
    coc.DARK_ELIXIR_TROOP_ORDER, coc.ELIXIR_SPELL_ORDER and coc.DARK_ELIXIR_SPELL_ORDER
  • Added the new Overgrowth Spell
  • Added the new equipment introduced since the last release (up to and including the February 2024 update)

v3.2.1

28 Dec 09:31
b6da3ff

Choose a tag to compare

v3.2.1

Bugs Fixed:

  • Fixed an issue that would cause spells to not be properly looked up, breaking coc.Client.get_spell and Player.spells
  • Fixed a month overflow issue with clan game start/end events that would occur from Dec 28th to Dec 31st