for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""Translate cli commands to non-cli code."""
import subprocess
class ControllerAPI:
"""Handle KytosController in daemon context."""
@staticmethod
def start():
"""Start Kytos in daemon context."""
subprocess.run(["kytosd"])
def stop():
subprocess.run(["kytosd", 'stop'])
def restart():
subprocess.run(["kytosd", 'restart'])