def __init__(self, repository=None): self.adapter = HttpAdapter() self.repository = repository or BackendRepository() self.repository.register(self.adapter) self.is_running = threading.Event() self.listen_url = "http://0.0.0.0:8989" self.api_url = "http://localhost:8989" self.srv = make_server("0.0.0.0", 8989, self)
def __init__(self, repository=None): self.adapter = HttpAdapter() self.repository = repository or BackendRepository() self.repository.register(self.adapter) self.api_url = "http://localhost:8989"
def __init__(self, repository=None): self.adapter = HttpAdapter() self.repository = repository or BackendRepository() self.repository.register(self.adapter) self.api_url = None self.is_running = threading.Event()