Releases: mathsman5133/coc.py
Releases · mathsman5133/coc.py
v3.7.2 Enable gzip & deflate compression
v3.7.1: Merge pull request #244 from mathsman5133/release/3.7.1
Additions:
- Added the new Magic Mirror equipment to
coc.EQUIPMENT
- updated static data
Bugs Fixed:
- Fixed a bug that would cause coc.py to break if a request was sent with an empty string for a tag
v3.7.0: June 20204 Update
Additions:
- Added inheritance of classes into the docs to make it easier to see what classes inherit from others.
- Added the new
BattleModifier
toClanWar.battle_modifier
andClanWarLogEntry.battle_modifier
. - Added the new troop and equipment in June 2024 update to the static data.
Changes:
- Changed the way the
ClanWar
andClanWarLogEntry
classes handles thestate
andresult
attribute, respectively. It now returns aWarState
/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.
v3.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.
v3.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 ifcoc.Badge.save
orcoc.Icon.save
are called without the optional size parameter- corrected the default value for the
league_id
parameter ofcoc.Client.get_seasons
to point at Legends league and fixed a type hint incoc.Client.get_season_rankings
as well as a few doc strings
v3.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
andcoc.PlayerEvents.active_equipment_change
- added the new names for builder base related events to
coc.ClanEvents
andcoc.PlayerEvents
- added the change in the api model for ClanMembers.
coc.ClanMember
now has a new attributetown_hall
which is the town hall level.
Fixes:
- Fixed an issue with the renaming of
versus_trophies
tobuilder_base_trophies
and similar name changes in the event related code
v3.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
andcoc.PlayerEvents.active_equipment_change
- added the new names for builder base related events to
coc.ClanEvents
andcoc.PlayerEvents
- added the change in the api model for ClanMembers.
coc.ClanMember
now has a new attributetown_hall
which is the town hall level.
Fixes:
- Fixed an issue with the renaming of
versus_trophies
tobuilder_base_trophies
and similar name changes in the event related code
v3.4.2: April 2024 update
Additions:
- added the new Angry Jelly pet to
coc.PETS_ORDER
- updated static data to reflect the April 2024 update
v3.4.1
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
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 incoc.Player.equipment
if game data was enabled - Fixed some errors in the docs