Coc.py

Latest version: v3.6.0

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

Scan your dependencies

Page 6 of 9

1.3.0

------
- Added Dragon Rider and Rocket Balloon

- Added `cls` parameter for :meth:`Clan.get_detailed_members()`

- Troops no longer included in `Player.home_troops`

- :exc:`InvalidArgument` will now return a more helpful message.

- ``limit`` parameter is now correctly cached when using ``search_x`` endpoints.

- Added more typings and documentation improvements

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.

Page 6 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.