Enums

PlayerHouseElementType

class coc.PlayerHouseElementType

Enum to map the type of element of the player house.

ground = 'ground'
roof = 'roof'
foot = 'foot'
deco = 'decoration'
walls = 'walls'
property in_game_name: str

Get a neat client-facing string value for the element type.

Role

class coc.Role

Enum to map a player’s role in the clan.

member = 'member'
elder = 'admin'
co_leader = 'coLeader'
leader = 'leader'
property in_game_name: str

Get a neat client-facing string value for the role.

ClanType

class coc.ClanType

An enumeration.

open = 'open'
closed = 'closed'
invite_only = 'inviteOnly'
property in_game_name: str

Get a neat client-facing string value for the clan type.

WarRound

class coc.WarRound

An enumeration.

previous_war = 0
current_war = 1
current_preparation = 2
property in_game_name: str

BattleModifier

class coc.BattleModifier

Enum to map the type of battle modifiers.

none = 'none'
hard_mode = 'hardMode'
property in_game_name: str

Get a neat client-facing string value for the battle modifier.

WarState

class coc.WarState

Enum to map the state of the war. Compared to the api docs a few states are missing, but those were never observed in the wild.

not_in_war = 'notInWar'
preparation = 'preparation'
in_war = 'inWar'
war_ended = 'warEnded'
property in_game_name: str

Get a neat client-facing string value for the war state.

WarResult

class coc.WarResult

Enum to map the result of the war

win = 'win'
lose = 'lose'
tie = 'tie'
property in_game_name: str

Get a neat client-facing string value for the war state.

ProductionBuildingType

class coc.ProductionBuildingType

An enumeration.

barracks = 'Barracks'
dark_barracks = 'Dark Barracks'
spell_factory = 'Spell Factory'
dark_spell_factory = 'Dark Spell Factory'
hero_hall = 'Hero Hall'
builder_barracks = 'Builder Barracks'
blacksmith = 'Blacksmith'
pet_house = 'Pet House'
workshop = 'Workshop'
none = 'None'

Resource

class coc.Resource

An enumeration.

gold = 'Gold'
elixir = 'Elixir'
dark_elixir = 'Dark Elixir'
builder_gold = 'Builder Gold'
builder_elixir = 'Builder Elixir'
gems = 'Gems'
shiny_ore = 'Shiny Ore'
glowy_ore = 'Glowy Ore'
starry_ore = 'Starry Ore'
medal_event_soft_currency = 'Medal Event Soft Currency'
league_medals = 'League Medals'
sparky_stones = 'Sparky Stones'

BuildingType

class coc.BuildingType

An enumeration.

army = 'Army'
town_hall = 'Town Hall'
town_hall_weapon = 'Town Hall Weapon'
builder_hall = 'BB Builder Hall'
resource = 'Resource'
wall = 'Wall'
defense = 'Defense'
worker = 'Worker'
worker_2 = 'Worker2'
helper = 'Helper'

VillageType

class coc.VillageType

An enumeration.

home = 'home'
builder_base = 'builderBase'
clan_capital = 'clanCapital'

SceneryType

class coc.SceneryType

An enumeration.

home = 'home'
builder_base = 'builderBase'
war = 'war'

EquipmentRarity

class coc.EquipmentRarity

An enumeration.

common = 'Common'
epic = 'Epic'

SkinTier

class coc.SkinTier

An enumeration.

default = 'Default'
standard = 'Basic'
gold = 'Gold'
legendary = 'Legendary'