Add ESI service skeleton, and my customer ESI Proxy class

This commit is contained in:
blitzmann
2018-01-11 20:54:33 -05:00
parent 9f7e4e0dc0
commit 9e8166c13d
3 changed files with 285 additions and 0 deletions

46
service/esi.py Normal file
View File

@@ -0,0 +1,46 @@
# noinspection PyPackageRequirements
import wx
from logbook import Logger
import threading
import copy
import uuid
import time
import eos.db
from eos.enum import Enum
from eos.saveddata.crestchar import CrestChar
import gui.globalEvents as GE
from service.settings import CRESTSettings
from service.server import StoppableHTTPServer, AuthHandler
from service.pycrest.eve import EVE
pyfalog = Logger(__name__)
class Servers(Enum):
TQ = 0
SISI = 1
class CrestModes(Enum):
IMPLICIT = 0
USER = 1
class ESI(object):
# @todo: move this to settings
clientCallback = 'http://localhost:6461'
clientTest = True
_instance = None
@classmethod
def getInstance(cls):
if cls._instance is None:
cls._instance = ESI()
return cls._instance
def __init__(self):
pass