coc
latest
Getting Started
Logging In
Basic Client Interface
Events Client
Models
Clans
Players
Wars
Raids
Game Objects
Clan and Player Attributes
Miscellaneous
Advanced
Events
Game Data
Custom Classes
Utility Functions
Exceptions
Extensions
Full War Api Extension
Triggers Extension
Examples
Discord Bot
Events
War Logs
Import client everywhere
Miscellaneous
Index
Changelog
Migrating to coc.py v3.0
Migrating to coc.py v2.0
Migrating to coc.py v1.0
Acknowledgements
coc
Index
Edit on GitHub
Index
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
K
|
L
|
M
|
N
|
O
|
P
|
R
|
S
|
T
|
U
|
V
|
W
A
ability_time (coc.Hero attribute)
Achievement (class in coc)
achievement_cls (coc.Player attribute)
achievements (coc.Player attribute)
add_clan_updates() (coc.EventsClient method)
add_events() (coc.EventsClient method)
add_player_updates() (coc.EventsClient method)
add_war_updates() (coc.EventsClient method)
attack_cls (coc.ClanWarMember attribute)
attack_count (coc.RaidClan attribute)
(coc.RaidDistrict attribute)
(coc.RaidLogEntry attribute)
(coc.RaidMember attribute)
attack_limit (coc.RaidMember attribute)
attack_log (coc.RaidLogEntry attribute)
attack_wins (coc.Player attribute)
(coc.RankedPlayer attribute)
attacker (coc.RaidAttack property)
(coc.WarAttack property)
attacker_name (coc.RaidAttack attribute)
attacker_tag (coc.RaidAttack attribute)
(coc.WarAttack attribute)
attacks (coc.ClanWar property)
(coc.ClanWarMember property)
(coc.RaidClan attribute)
(coc.RaidDistrict attribute)
(coc.RaidMember attribute)
(coc.WarClan attribute)
attacks_per_member (coc.ClanWar attribute)
(coc.ClanWarLogEntry attribute)
attacks_used (coc.WarClan attribute)
autostart (coc.ext.triggers.CronTrigger attribute)
(coc.ext.triggers.IntervalTrigger attribute)
average_attack_duration (coc.WarClan property)
B
Badge (class in coc)
badge (coc.BaseClan attribute)
(coc.Clan attribute)
(coc.ClanWarLeagueClan attribute)
(coc.Label attribute)
(coc.PlayerClan attribute)
(coc.RaidClan attribute)
(coc.RankedClan attribute)
(coc.WarClan attribute)
BaseClan (class in coc)
BaseLeague (class in coc)
BasePlayer (class in coc)
best_builder_base_season (coc.LegendStatistics attribute)
best_builder_base_trophies (coc.Player attribute)
best_opponent_attack (coc.ClanWarMember property)
best_season (coc.LegendStatistics attribute)
best_trophies (coc.Player attribute)
bonus_attack_limit (coc.RaidMember attribute)
builder_base_league (coc.ClanMember attribute)
builder_base_league_cls (coc.ClanMember attribute)
builder_base_points (coc.Clan attribute)
(coc.RankedClan attribute)
builder_base_rank (coc.ClanMember attribute)
builder_base_trophies (coc.ClanMember attribute)
(coc.RankedPlayer attribute)
builder_elixir (coc.Resource attribute)
builder_hall (coc.Player attribute)
builder_troops (coc.Player attribute)
C
capital_district_cls (coc.Clan attribute)
capital_districts (coc.Clan attribute)
capital_league (coc.Clan attribute)
capital_points (coc.Clan attribute)
(coc.RankedClan attribute)
capital_resources_looted (coc.RaidMember attribute)
CapitalDistrict (class in coc)
Clan (class in coc)
clan (coc.ClanMember attribute)
(coc.ClanWar attribute)
(coc.ClanWarLogEntry attribute)
(coc.ClanWarMember attribute)
clan_capital_contributions (coc.Player attribute)
clan_cls (coc.ClanMember attribute)
(coc.ClanWar attribute)
clan_previous_rank (coc.ClanMember attribute)
clan_rank (coc.ClanMember attribute)
ClanMember (class in coc)
clans (coc.ClanWarLeagueGroup attribute)
ClanWar (class in coc)
ClanWarLeagueClan (class in coc)
ClanWarLeagueClanMember (class in coc)
ClanWarLeagueGroup (class in coc)
ClanWarLogEntry (class in coc)
ClanWarMember (class in coc)
ClashOfClansException
Client (class in coc)
close() (coc.Client method)
coc.ACHIEVEMENT_ORDER (in module coc)
coc.BUILDER_TROOPS_ORDER (in module coc)
coc.DARK_ELIXIR_SPELL_ORDER (in module coc)
coc.DARK_ELIXIR_TROOP_ORDER (in module coc)
coc.ELIXIR_SPELL_ORDER (in module coc)
coc.ELIXIR_TROOP_ORDER (in module coc)
coc.HERO_ORDER (in module coc)
coc.HERO_PETS_ORDER (in module coc)
coc.HOME_TROOP_ORDER (in module coc)
coc.SIEGE_MACHINE_ORDER (in module coc)
coc.SPELL_ORDER (in module coc)
coc.SUPER_TROOP_ORDER (in module coc)
completed_raid_count (coc.RaidLogEntry attribute)
completion_info (coc.Achievement attribute)
cooldown (coc.Troop attribute)
correct_tag() (in module coc.utils)
country_code (coc.Location attribute)
create_army_link() (coc.Client method)
cron_schedule (coc.ext.triggers.CronTrigger attribute)
CronTrigger (class in coc.ext.triggers)
current_preparation (coc.WarRound attribute)
current_season (coc.LegendStatistics attribute)
current_war (coc.WarRound attribute)
D
daily() (coc.ext.triggers.CronTrigger class method)
(coc.ext.triggers.IntervalTrigger class method)
dark_elixir (coc.Resource attribute)
days (coc.TimeDelta attribute)
deco (coc.PlayerHouseElementType attribute)
defender (coc.WarAttack property)
defender_tag (coc.WarAttack attribute)
defense_attack_count (coc.RaidLogEntry attribute)
defense_count (coc.ClanWarMember attribute)
defense_log (coc.RaidLogEntry attribute)
defense_wins (coc.Player attribute)
(coc.RankedPlayer attribute)
defenses (coc.ClanWarMember property)
(coc.WarClan attribute)
defensive_destroyed_district_count (coc.RaidLogEntry attribute)
defensive_reward (coc.RaidLogEntry attribute)
description (coc.Clan attribute)
destroyed_district_count (coc.RaidClan attribute)
(coc.RaidLogEntry attribute)
destruction (coc.RaidAttack attribute)
(coc.RaidDistrict attribute)
(coc.WarAttack attribute)
(coc.WarClan attribute)
dispatch() (coc.Client method)
(coc.EventsClient method)
district (coc.RaidAttack attribute)
district_count (coc.RaidClan attribute)
districts (coc.RaidClan attribute)
donations (coc.ClanMember attribute)
dps (coc.Hero attribute)
(coc.Pet attribute)
(coc.Troop attribute)
duration (coc.Troop attribute)
(coc.WarAttack attribute)
E
elixir (coc.Resource attribute)
end_time (coc.ClanWar attribute)
(coc.ClanWarLogEntry attribute)
(coc.RaidLogEntry attribute)
equipment (coc.Hero attribute)
(coc.Player attribute)
,
[1]
equipment_cls (coc.Player attribute)
error_handler (coc.ext.triggers.CronTrigger attribute)
(coc.ext.triggers.IntervalTrigger attribute)
event() (coc.EventsClient method)
EventsClient (class in coc)
exp_earned (coc.WarClan attribute)
exp_level (coc.ClanMember attribute)
F
family_friendly (coc.Clan attribute)
find() (in module coc.utils)
foot (coc.PlayerHouseElementType attribute)
Forbidden
from_timestamp() (in module coc.utils)
G
GatewayError
get() (in module coc.utils)
get_achievement() (coc.Player method)
get_attack() (coc.ClanWar method)
get_builder_base_league() (coc.Client method)
get_builder_base_league_named() (coc.Client method)
get_capital_league() (coc.Client method)
get_capital_league_named() (coc.Client method)
get_clan() (coc.Client method)
get_clan_games_end() (in module coc.utils)
get_clan_games_start() (in module coc.utils)
get_clan_labels() (coc.Client method)
get_clan_war() (coc.Client method)
get_clan_wars() (coc.Client method)
get_clans() (coc.Client method)
get_current_goldpass_season() (coc.Client method)
get_current_war() (coc.Client method)
get_current_wars() (coc.Client method)
get_defenses() (coc.ClanWar method)
get_detailed_clan() (coc.ClanMember method)
(coc.Player method)
(coc.RankedPlayer method)
get_detailed_members() (coc.BaseClan method)
(coc.Clan method)
(coc.ClanWarLeagueClan method)
(coc.PlayerClan method)
(coc.RankedClan method)
(coc.WarClan method)
get_equipment() (coc.Player method)
get_hero() (coc.Client method)
(coc.Player method)
get_league() (coc.Client method)
get_league_group() (coc.Client method)
get_league_named() (coc.Client method)
get_league_war() (coc.Client method)
get_league_wars() (coc.Client method)
get_location() (coc.Client method)
get_location_clans() (coc.Client method)
get_location_clans_builder_base() (coc.Client method)
get_location_clans_capital() (coc.Client method)
get_location_named() (coc.Client method)
get_location_players() (coc.Client method)
get_location_players_builder_base() (coc.Client method)
get_max_level_for_townhall() (coc.Hero class method)
(coc.Pet class method)
(coc.Spell class method)
(coc.Troop class method)
get_member() (coc.Clan method)
(coc.ClanWar method)
(coc.RaidLogEntry method)
(coc.WarClan method)
get_member_by() (coc.Clan method)
(coc.ClanWar method)
get_members() (coc.Client method)
get_pet() (coc.Client method)
(coc.Player method)
get_player() (coc.Client method)
get_player_labels() (coc.Client method)
get_players() (coc.Client method)
get_raid_log() (coc.Client method)
get_raid_weekend_end() (in module coc.utils)
get_raid_weekend_start() (in module coc.utils)
get_season_end() (in module coc.utils)
get_season_rankings() (coc.Client method)
get_season_start() (in module coc.utils)
get_seasons() (coc.Client method)
get_spell() (coc.Client method)
(coc.Player method)
get_troop() (coc.Client method)
(coc.Player method)
get_war_league() (coc.Client method)
get_war_league_named() (coc.Client method)
get_war_log() (coc.Client method)
get_wars() (coc.ClanWarLeagueGroup method)
get_wars_for_clan() (coc.ClanWarLeagueGroup method)
gold (coc.Resource attribute)
ground (coc.PlayerHouseElementType attribute)
ground_target (coc.Hero attribute)
(coc.Pet attribute)
(coc.Troop attribute)
H
hall_level (coc.CapitalDistrict attribute)
(coc.RaidDistrict attribute)
Hero (class in coc)
hero_cls (coc.Player attribute)
heroes (coc.Player attribute)
hitpoints (coc.Hero attribute)
(coc.Pet attribute)
(coc.Troop attribute)
home_troops (coc.Player attribute)
hourly() (coc.ext.triggers.CronTrigger class method)
(coc.ext.triggers.IntervalTrigger class method)
hours (coc.TimeDelta attribute)
HTTPException
I
Icon (class in coc)
icon (coc.League attribute)
id (coc.BaseLeague attribute)
(coc.CapitalDistrict attribute)
(coc.Hero attribute)
(coc.Label attribute)
(coc.League attribute)
(coc.Location attribute)
(coc.Pet attribute)
(coc.PlayerHouseElement attribute)
(coc.RaidDistrict attribute)
(coc.Spell attribute)
(coc.Troop attribute)
in_game_name (coc.Role attribute)
index (coc.RaidClan attribute)
info (coc.Achievement attribute)
IntervalTrigger (class in coc.ext.triggers)
InvalidArgument
InvalidCredentials
is_builder_base (coc.Achievement property)
is_completed (coc.Achievement property)
is_country (coc.Location attribute)
is_cwl (coc.ClanWar property)
is_dark_spell (coc.Spell attribute)
is_dark_troop (coc.Troop attribute)
is_elixir_spell (coc.Spell attribute)
is_elixir_troop (coc.Troop attribute)
is_fresh_attack (coc.WarAttack property)
is_home_base (coc.Achievement property)
is_league_entry (coc.ClanWarLogEntry property)
is_loaded (coc.Hero attribute)
(coc.Pet attribute)
(coc.Spell attribute)
(coc.Troop attribute)
is_max_for_townhall (coc.Hero property)
(coc.Pet property)
(coc.Spell property)
(coc.Troop property)
is_opponent (coc.ClanWarMember property)
(coc.WarClan property)
is_siege_machine (coc.Troop attribute)
is_super_troop (coc.Troop attribute)
is_valid_tag() (in module coc.utils)
iter_args (coc.ext.triggers.CronTrigger attribute)
(coc.ext.triggers.IntervalTrigger attribute)
K
kwargs (coc.ext.triggers.CronTrigger attribute)
(coc.ext.triggers.IntervalTrigger attribute)
L
lab_level (coc.Troop attribute)
Label (class in coc)
label_cls (coc.Clan attribute)
(coc.Player attribute)
labels (coc.Clan attribute)
(coc.Player attribute)
large (coc.Badge attribute)
League (class in coc)
league (coc.ClanMember attribute)
league_cls (coc.ClanMember attribute)
league_group (coc.ClanWar attribute)
legend_statistics (coc.Player attribute)
legend_trophies (coc.LegendStatistics attribute)
LegendStatistics (class in coc)
level (coc.BaseClan attribute)
(coc.Clan attribute)
(coc.ClanWarLeagueClan attribute)
(coc.Hero attribute)
(coc.Pet attribute)
(coc.PlayerClan attribute)
(coc.RaidClan attribute)
(coc.RankedClan attribute)
(coc.Spell attribute)
(coc.Troop attribute)
(coc.WarClan attribute)
load_game_data() (coc.Player method)
LoadGameData (class in coc)
localised_name (coc.Location attribute)
Location (class in coc)
location (coc.Clan attribute)
(coc.RankedClan attribute)
logger (coc.ext.triggers.CronTrigger attribute)
(coc.ext.triggers.IntervalTrigger attribute)
login() (coc.Client method)
(in module coc.Client)
login_with_keys() (coc.Client method)
login_with_tokens() (coc.Client method)
(in module coc.Client)
loop (coc.Client attribute)
(coc.EventsClient attribute)
(coc.ext.triggers.CronTrigger attribute)
(coc.ext.triggers.IntervalTrigger attribute)
looted (coc.RaidClan attribute)
(coc.RaidDistrict attribute)
M
Maintenance
map_position (coc.ClanWarMember attribute)
max_level (coc.Hero attribute)
(coc.Pet attribute)
(coc.Spell attribute)
(coc.Troop attribute)
max_stars (coc.WarClan attribute)
medium (coc.Badge attribute)
(coc.Icon attribute)
member_cls (coc.Clan attribute)
(coc.WarClan attribute)
member_count (coc.Clan attribute)
(coc.RankedClan attribute)
members (coc.Clan attribute)
(coc.ClanWar property)
(coc.ClanWarLeagueClan attribute)
(coc.RaidLogEntry attribute)
(coc.WarClan attribute)
members_dict (coc.Clan attribute)
message (coc.HTTPException attribute)
min_original_level (coc.Troop attribute)
minutes (coc.TimeDelta attribute)
monthly() (coc.ext.triggers.CronTrigger class method)
N
name (coc.Achievement attribute)
(coc.BaseClan attribute)
(coc.BaseLeague attribute)
(coc.BasePlayer attribute)
(coc.CapitalDistrict attribute)
(coc.Clan attribute)
(coc.ClanMember attribute)
(coc.ClanWarLeagueClan attribute)
(coc.ClanWarLeagueClanMember attribute)
(coc.ClanWarMember attribute)
(coc.Hero attribute)
(coc.Label attribute)
(coc.League attribute)
(coc.Location attribute)
(coc.Pet attribute)
(coc.PlayerClan attribute)
(coc.RaidClan attribute)
(coc.RaidDistrict attribute)
(coc.RaidMember attribute)
(coc.RankedClan attribute)
(coc.Spell attribute)
(coc.Troop attribute)
(coc.WarClan attribute)
NotFound
now (coc.Timestamp property)
number_of_rounds (coc.ClanWarLeagueGroup attribute)
O
offensive_reward (coc.RaidLogEntry attribute)
on_error() (in module coc.ext.triggers)
on_startup (coc.ext.triggers.CronTrigger attribute)
(coc.ext.triggers.IntervalTrigger attribute)
opponent (coc.ClanWar attribute)
(coc.ClanWarLogEntry attribute)
order (coc.WarAttack attribute)
original_troop (coc.Troop attribute)
P
parse_army_link() (coc.Client method)
Pet (class in coc)
pets (coc.Player attribute)
Player (class in coc)
player_house_elements (coc.ClanMember attribute)
PlayerClan (class in coc)
PlayerHouseElement (class in coc)
PlayerHouseElementType (class in coc)
points (coc.Clan attribute)
(coc.RankedClan attribute)
preparation_start_time (coc.ClanWar attribute)
previous_best_opponent_attack (coc.ClanWarMember property)
previous_builder_base_season (coc.LegendStatistics attribute)
previous_rank (coc.RankedClan attribute)
(coc.RankedPlayer attribute)
previous_season (coc.LegendStatistics attribute)
previous_war (coc.WarRound attribute)
PrivateWarLog
public_war_log (coc.Clan attribute)
R
raid_clan (coc.RaidAttack attribute)
(coc.RaidDistrict attribute)
raid_log_entry (coc.RaidAttack attribute)
(coc.RaidClan attribute)
(coc.RaidDistrict attribute)
(coc.RaidMember attribute)
RaidAttack (class in coc)
RaidClan (class in coc)
RaidDistrict (class in coc)
RaidLogEntry (class in coc)
RaidMember (class in coc)
range (coc.Hero attribute)
(coc.Pet attribute)
(coc.Spell attribute)
(coc.Troop attribute)
rank (coc.RankedClan attribute)
(coc.RankedPlayer attribute)
RankedClan (class in coc)
RankedPlayer (class in coc)
raw_time (coc.Timestamp attribute)
reason (coc.HTTPException attribute)
received (coc.ClanMember attribute)
regeneration_time (coc.Hero attribute)
remove_clan_updates() (coc.EventsClient method)
remove_events() (coc.EventsClient method)
remove_player_updates() (coc.EventsClient method)
remove_war_updates() (coc.EventsClient method)
required_builder_base_trophies (coc.Clan attribute)
required_th_level (coc.Hero attribute)
(coc.Pet attribute)
required_townhall (coc.Clan attribute)
required_trophies (coc.Clan attribute)
Resource (class in coc)
response (coc.HTTPException attribute)
result (coc.ClanWarLogEntry attribute)
Role (class in coc)
role (coc.ClanMember attribute)
roof (coc.PlayerHouseElementType attribute)
rounds (coc.ClanWarLeagueGroup attribute)
run_forever() (coc.EventsClient method)
S
save() (coc.Badge method)
(coc.Icon method)
search_builder_base_leagues() (coc.Client method)
search_capital_leagues() (coc.Client method)
search_clans() (coc.Client method)
search_leagues() (coc.Client method)
search_locations() (coc.Client method)
search_war_leagues() (coc.Client method)
season (coc.ClanWarLeagueGroup attribute)
seconds (coc.ext.triggers.IntervalTrigger attribute)
(coc.TimeDelta attribute)
seconds_until (coc.Timestamp property)
share_link (coc.BaseClan property)
(coc.BasePlayer property)
(coc.Clan property)
(coc.ClanMember property)
(coc.ClanWarLeagueClan property)
(coc.ClanWarLeagueClanMember property)
(coc.ClanWarMember property)
(coc.Player property)
(coc.PlayerClan property)
(coc.RaidMember property)
(coc.RankedClan property)
(coc.RankedPlayer property)
(coc.WarClan property)
siege_machines (coc.Player attribute)
small (coc.Badge attribute)
(coc.Icon attribute)
speed (coc.Hero attribute)
(coc.Pet attribute)
(coc.Troop attribute)
Spell (class in coc)
spell_cls (coc.Player attribute)
spells (coc.Player attribute)
star_count (coc.ClanWarMember property)
stars (coc.Achievement attribute)
(coc.RaidAttack attribute)
(coc.WarAttack attribute)
(coc.WarClan attribute)
start_time (coc.ClanWar attribute)
(coc.RaidLogEntry attribute)
start_triggers() (in module coc.ext.triggers)
state (coc.ClanWar attribute)
(coc.ClanWarLeagueGroup attribute)
(coc.RaidLogEntry attribute)
status (coc.ClanWar property)
(coc.HTTPException attribute)
super_troops (coc.Player attribute)
T
tag (coc.BaseClan attribute)
(coc.BasePlayer attribute)
(coc.Clan attribute)
(coc.ClanMember attribute)
(coc.ClanWarLeagueClan attribute)
(coc.ClanWarLeagueClanMember attribute)
(coc.ClanWarMember attribute)
(coc.PlayerClan attribute)
(coc.RaidClan attribute)
(coc.RaidMember attribute)
(coc.RankedClan attribute)
(coc.WarClan attribute)
target (coc.Achievement attribute)
team_size (coc.ClanWar attribute)
(coc.ClanWarLogEntry attribute)
time (coc.Timestamp property)
TimeDelta (class in coc)
Timestamp (class in coc)
tiny (coc.Icon attribute)
total_attacks (coc.WarClan attribute)
total_defensive_loot (coc.RaidLogEntry attribute)
total_loot (coc.RaidLogEntry attribute)
total_seconds() (coc.TimeDelta method)
town_hall (coc.ClanMember attribute)
(coc.ClanWarLeagueClanMember attribute)
(coc.ClanWarMember attribute)
town_hall_weapon (coc.Player attribute)
training_cost (coc.Spell attribute)
(coc.Troop attribute)
training_resource (coc.Spell attribute)
(coc.Troop attribute)
training_time (coc.Spell attribute)
(coc.Troop attribute)
Troop (class in coc)
troop_cls (coc.Player attribute)
troops (coc.Player attribute)
trophies (coc.ClanMember attribute)
type (coc.Clan attribute)
(coc.ClanWar property)
(coc.PlayerHouseElement attribute)
U
upgrade_cost (coc.Hero attribute)
(coc.Pet attribute)
(coc.Spell attribute)
(coc.Troop attribute)
upgrade_resource (coc.Hero attribute)
(coc.Pet attribute)
(coc.Spell attribute)
(coc.Troop attribute)
upgrade_time (coc.Hero attribute)
(coc.Pet attribute)
(coc.Spell attribute)
(coc.Troop attribute)
url (coc.Badge attribute)
(coc.Icon attribute)
V
value (coc.Achievement attribute)
verify_player_token() (coc.Client method)
village (coc.Achievement attribute)
(coc.Hero attribute)
(coc.Pet attribute)
(coc.Spell attribute)
(coc.Troop attribute)
W
walls (coc.PlayerHouseElementType attribute)
war (coc.ClanWarMember attribute)
(coc.WarAttack attribute)
war_frequency (coc.Clan attribute)
war_league (coc.Clan attribute)
war_losses (coc.Clan attribute)
war_opted_in (coc.Player attribute)
war_stars (coc.Player attribute)
war_tag (coc.ClanWar attribute)
war_ties (coc.Clan attribute)
war_win_streak (coc.Clan attribute)
war_wins (coc.Clan attribute)
WarAttack (class in coc)
WarClan (class in coc)
WarRound (class in coc)
weekly() (coc.ext.triggers.CronTrigger class method)
Read the Docs
v: latest
Versions
latest
stable
v2
0.3.x
rewrite
restructure_docs
Downloads
On Read the Docs
Project Home
Builds