Coc.py

Latest version: v3.8.1

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 9

1.2.1

------
- Fixes an issue where `Clan.members` was empty if `Clan.get_member` was called before `Clan.members`.
There was a similar issue with `Player.heroes` and `Player.spells`.

1.2.0

------

- Adds new achievements and updated the order of existing ones.

- Added :attr:`Player.super_troops` and :attr:`Player.pets`.

- Added :attr:`Troop.is_active` to check whether a super troop is active.

- Added :attr:`WarAttack.duration`

- Added :attr:`Clan.chat_language` which is a :class:`ChatLanguage` object.

- Fixed errors when coc.py tried to parse 5xx (e.g. 502) errors as HTML when they were dicts.

- Improved docs for :attr:`RankedPlayer.previous_rank`.

1.1.0

- Adds support for the new Player API verification endpoint - see :meth:`Client.verify_player_token`

- Fixes a bug where members in `clan.get_detailed_members()` wouldn't have the `clan_rank` attribute, for example::

before
async for member in clan.get_detailed_members():
print(member.clan_rank) prints "None"

after
async for member in clan.get_detailed_members():
print(member.clan_rank) prints "1" or "10" or their clan rank.


- Fixes a bug where getting the warlog failed for clans with (>3yr) old war logs. See <https://github.com/mathsman5133/coc.py/issues/72>

- Fixed docs for :attr:`Player.clan_previous_rank` since it was misleading before.

1.0.4

1.0.3

------

- Fixed an issue where the HTTP cache layer was not being utilised.

- Fixed an issue where :meth:`utils.get_season_start` and :meth:`utils.get_season_end` got the previous season information
if the system time had not yet passed 5am UTC.

1.0.2

------

- Fixed an issue where hitting Maintenance errors when using the normal Client would raise an Attribute Error.

- Fixed an issue where using `Clan.get_member` without calling `Clan.members` would build an incorrect player lookup dict.

- Fixed an issue where events wouldn't start because the maintenance event wasn't set properly.

Page 7 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.