1
0
Fork 0
trespassed/software/main.py

19 lines
540 B
Python

"""Main endpoint for trespassed application."""
from trespassed.serial import SerialService, watchdog_service
from trespassed.status import status_service
from trespassed.web import WebService
from twisted.application.service import Application
application = Application("Trespassed")
serial_service = SerialService()
serial_service.setServiceParent(application)
web_service = WebService("tcp:8000")
web_service.setServiceParent(application)
watchdog_service.setServiceParent(application)
status_service.setServiceParent(application)