Coc.py

Latest version: v3.7.0

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

Scan your dependencies

Page 1 of 9

3.7

Add retry handling to the HTTPClient - if a request fails with a GatewayError (or TimeoutError), it will sleep and then retry for a maximum of 5 times.
Super Minion, Super Wizard, Ice Hound, Log Launcher and Invisibility Spells were added.

3.7.0

Additions:
---
- Added inheritance of classes into the docs to make it easier to see what classes inherit from others.
- Added the new `BattleModifier` to `ClanWar.battle_modifier` and `ClanWarLogEntry.battle_modifier`.
- Added the new troop and equipment in June 2024 update to the static data.

Changes:
---
- Changed the way the `ClanWar` and `ClanWarLogEntry` classes handles the `state` and `result`
attribute, respectively. It now returns a `WarState`/`WarResult` enumeration object instead of a string
to allow better type hinting and easier comparison.
- Updated the static data to reflect the June 2024 update changes.

3.6.0

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.

3.5.3

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

3.5.2

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

3.5.1

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

Page 1 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.