from django.conf import settings
import vk
from utils.singleton import Singleton


class API(vk.API, metaclass=Singleton):
    method_default_args = {'v': '5.92', 'timeout': 10}

    def __init__(self):
        session = vk.Session(access_token=settings.VK_APP_ACCESS_TOKEN)
        super().__init__(session, **self.method_default_args)

bfffde2f850a25d010edb461e0a2cf9a2c454521
<mask token>


class API(vk.API, metaclass=Singleton):
    <mask token>
    <mask token>

<mask token>


class API(vk.API, metaclass=Singleton):
    <mask token>

    def __init__(self):
        session = vk.Session(access_token=settings.VK_APP_ACCESS_TOKEN)
        super().__init__(session, **self.method_default_args)

<mask token>


class API(vk.API, metaclass=Singleton):
    method_default_args = {'v': '5.92', 'timeout': 10}

    def __init__(self):
        session = vk.Session(access_token=settings.VK_APP_ACCESS_TOKEN)
        super().__init__(session, **self.method_default_args)

from django.conf import settings
import vk
from utils.singleton import Singleton


class API(vk.API, metaclass=Singleton):
    method_default_args = {'v': '5.92', 'timeout': 10}

    def __init__(self):
        session = vk.Session(access_token=settings.VK_APP_ACCESS_TOKEN)
        super().__init__(session, **self.method_default_args)
