from wargaming.version import get_version

ALLOWED_GAMES = ('wot', 'wgn', 'wows', 'wotb', 'wotx', 'wowp')

# WG classes xbox and ps4 as 'regions' hence they are incuded here
ALLOWED_REGIONS = ('ru', 'asia', 'na', 'eu', 'xbox', 'ps4')
REGION_TLD_MAP = {
    'ru': 'ru',
    'asia': 'asia',
    'na': 'com',
    'eu': 'eu',
}

GAME_API_ENDPOINTS = {
    'wgn': 'https://api.worldoftanks.{region}/wgn/',
    'wot': 'https://api.worldoftanks.{region}/wot/',
    'wotb': 'https://api.wotblitz.{region}/wotb/',
    'wotx': 'https://api-{region}-console.worldoftanks.com/wotx/',
    'wowp': 'https://api.worldofwarplanes.{region}/wowp/',
    'wows': 'https://api.worldofwarships.{region}/wows/',
}

DEFAULT_REGION = 'ru'

ALLOWED_LANGUAGES = ('en', 'ru', 'pl', 'de', 'fr', 'es', 'zh-cn', 'tr', 'cs', 'th', 'vi', 'ko')
DEFAULT_LANGUAGE = 'en'

HTTP_USER_AGENT_HEADER = 'python-wargaming/{0} (https://github.com/svartalf/python-wargaming)'.format(get_version())

# How many times retry api call
RETRY_COUNT = 10

from wargaming.version import get_version

ALLOWED_GAMES = ('wot', 'wgn', 'wows', 'wotb', 'wotx', 'wowp')

# WG classes xbox and ps4 as 'regions' hence they are incuded here
ALLOWED_REGIONS = ('ru', 'asia', 'na', 'eu', 'xbox', 'ps4')
REGION_TLD_MAP = {
    'ru': 'ru',
    'asia': 'asia',
    'na': 'com',
    'eu': 'eu',
}

GAME_API_ENDPOINTS = {
    'wgn': 'https://api.worldoftanks.{region}/wgn/',
    'wot': 'https://api.worldoftanks.{region}/wot/',
    'wotb': 'https://api.wotblitz.{region}/wotb/',
    'wotx': 'https://api-{region}-console.worldoftanks.com/wotx/',
    'wowp': 'https://api.worldofwarplanes.{region}/wowp/',
    'wows': 'https://api.worldofwarships.{region}/wows/',
}

DEFAULT_REGION = 'ru'

ALLOWED_LANGUAGES = ('en', 'ru', 'pl', 'de', 'fr', 'es', 'zh-cn', 'tr', 'cs', 'th', 'vi', 'ko')
DEFAULT_LANGUAGE = 'en'

HTTP_USER_AGENT_HEADER = 'python-wargaming/{0} (https://github.com/svartalf/python-wargaming)'.format(get_version())

# How many times retry api call
RETRY_COUNT = 10

# WG classes xbox and ps4 as 'regions' hence they are incuded here # How many times retry api call