Coc.py

Latest version: v3.6.0

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

Scan your dependencies

Page 2 of 9

3.4.1

Additions:
---
- added the missing achievements to `coc.ACHIEVEMENT_ORDER`
- updated static data to reflect the March 26th balance patch

3.4.0

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

3.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`

3.3.0

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)

3.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

3.2.0

Additions:
- Added custom class support to a few more classes:
- :class:`ClanWarMember` now supports the :attr:`attack_cls` attribute to customize the type returned in
:func:`ClanWarMember.attacks` (and, by extension also :func:`WarClan.attacks` and :func:`ClanWar.attacks`)
- :class:`WarClan` now supports the :attr:`member_cls` attribute to customize the type returned in
:func:`WarClan.members` (and, by extension also :func:`ClanWar.members`)
- :class:`ClanWar` now supports the :attr:`clan_cls` attribute to customize the types of
:func:`ClanWar.clan` and :func:`ClanWar.opponent`
- the :class:`Equipment` class can now be imported as ``coc.Equipment``

**Full Changelog**: https://github.com/mathsman5133/coc.py/compare/v3.1.0...v3.2.0

Page 2 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.