This release fixes multiple bugs.
Also multiple new features have been added like an event for new wars.
We worked on the docs, to improve their structure and readability.
Additions:
- Added new events `ClientEvents.raid_weekend_start`, `ClientEvents.raid_weekend_end`, `ClientEvents.clan_games_start`, `ClientEvents.clan_games_end`, `WarEvents.new_war` and `ClanEvents.member_versus_rank`
- Added utility functions `utils.get_clan_games_start`, `utils.get_clan_games_end`, `utils.get_raid_weekend_start` and `utils.get_raid_weekend_end`
- Added clan capital leaderboards
- Added `Clan.capital_points` and`Clan.family_friendly`
- Added `ClanMember.versus_rank`
- Added `Client.raw_attribute` to control if the new `_raw_data` attribute of various objects gets populated
- Added `full_war_api` as an extension
- Added `Client.login_with_tokens` offering the same functionality as `Client.login_with_keys` as an asynchronous function
Changes:
- Rename of LRU to FIFO in order to match the cache type (this is only internal)
- Restructured the documentation
- `Client.login_with_keys` was marked as deprecated
Bugs Fixed:
- Fixed a bug which affected the key creation if there are 10 keys with at least one having the correct name but wrong ip range
- Fixed a memory leak caused by python not properly freeing disk space after the removal of cache entries
- Fixed a bug that prevented :`Client.http.stats` from collecting API response time stats
- Fixed a bug that tried to use a cache when `max_cache_size` was set to 0
- Corrected order of elixir troops
- Fixed a bug when clans faced each other multiple times in one raid weekend
- Fixed a bug that caused automated tests on forks to fail
- Fixed a bug that prevented you from importing some classes as `coc.Class`
Contributions
We want to say thank you to all those who contributed!
* Fix memory leak by Kuchenmampfer in https://github.com/mathsman5133/coc.py/pull/154
* Fullwarapi public by doluk in https://github.com/mathsman5133/coc.py/pull/164
* add missing classes to __init__.py by Kuchenmampfer in https://github.com/mathsman5133/coc.py/pull/160
* Fix for only one raid per clan showing on atk/def log by MagicTheDev in https://github.com/mathsman5133/coc.py/pull/158
* add clan capital leaderboards by MagicTheDev in https://github.com/mathsman5133/coc.py/pull/157
* Moved "Electro Titan" at the end of elixir troops by rreemmii-dev in https://github.com/mathsman5133/coc.py/pull/155
* Adds new clan class fields by MagicTheDev in https://github.com/mathsman5133/coc.py/pull/159
* If less than 10 keys exist, at least 1 key can be made, but if 10 keys… by AumJavalgikar in https://github.com/mathsman5133/coc.py/pull/119
* huge docs restructuring by Kuchenmampfer in https://github.com/mathsman5133/coc.py/pull/166 and https://github.com/mathsman5133/coc.py/pull/167
**Full Changelog**: https://github.com/mathsman5133/coc.py/compare/v2.2.3...v2.3.0