# Path: lambdainst/core.py
# LCORE_BASE_URL = lcore_settings.get('BASE_URL')
# LCORE_API_KEY = lcore_settings['API_KEY']
# LCORE_API_SECRET = lcore_settings['API_SECRET']
# LCORE_SOURCE_ADDR = lcore_settings.get('SOURCE_ADDRESS')
# LCORE_INST_SECRET = lcore_settings['INST_SECRET']
# LCORE_TIMEOUT = lcore_settings.get('TIMEOUT', 10)
# LCORE_RAISE_ERRORS = bool(lcore_settings.get('RAISE_ERRORS', False))
# LCORE_CACHE_TTL = lcore_settings.get('CACHE_TTL', 60)
#     LCORE_CACHE_TTL = timedelta(seconds=LCORE_CACHE_TTL)
# VPN_AUTH_STORAGE = settings.VPN_AUTH_STORAGE
# class APICache:
#     def __init__(self, ttl=None, initial=None):
#     def query(self, wrapped, *args, **kwargs):
#     def __call__(self, wrapped):
#         def wrapper(*args, **kwargs):
# def current_active_sessions():
# def get_locations():
# def get_gateway_exit_ips():
# def is_vpn_gateway(ip):
# def create_user(username, cleartext_password):
# def update_user_expiration(user):
# def update_user_password(user, cleartext_password):
# def delete_user(username):


from django.core.management.base import BaseCommand
from lambdainst.core import core_api



class Command(BaseCommand):
    help = "Get informations about core API"

    def handle(self, *args, **options):

# Path: lambdainst/core.py
# LCORE_BASE_URL = lcore_settings.get('BASE_URL')
# LCORE_API_KEY = lcore_settings['API_KEY']
# LCORE_API_SECRET = lcore_settings['API_SECRET']
# LCORE_SOURCE_ADDR = lcore_settings.get('SOURCE_ADDRESS')
# LCORE_INST_SECRET = lcore_settings['INST_SECRET']
# LCORE_TIMEOUT = lcore_settings.get('TIMEOUT', 10)
# LCORE_RAISE_ERRORS = bool(lcore_settings.get('RAISE_ERRORS', False))
# LCORE_CACHE_TTL = lcore_settings.get('CACHE_TTL', 60)
#     LCORE_CACHE_TTL = timedelta(seconds=LCORE_CACHE_TTL)
# VPN_AUTH_STORAGE = settings.VPN_AUTH_STORAGE
# class APICache:
#     def __init__(self, ttl=None, initial=None):
#     def query(self, wrapped, *args, **kwargs):
#     def __call__(self, wrapped):
#         def wrapper(*args, **kwargs):
# def current_active_sessions():
# def get_locations():
# def get_gateway_exit_ips():
# def is_vpn_gateway(ip):
# def create_user(username, cleartext_password):
# def update_user_expiration(user):
# def update_user_password(user, cleartext_password):
# def delete_user(username):


# Path: lambdainst/management/commands/core_info.py
from django.core.management.base import BaseCommand
from lambdainst.core import core_api




class Command(BaseCommand):
    help = "Get informations about core API"

    def handle(self, *args, **options):

        for k, v in core_api.info.items():