aboutsummaryrefslogtreecommitdiffstats
path: root/templates/service/{{cookiecutter.file_name}}.py
diff options
context:
space:
mode:
Diffstat (limited to 'templates/service/{{cookiecutter.file_name}}.py')
-rw-r--r--templates/service/{{cookiecutter.file_name}}.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/service/{{cookiecutter.file_name}}.py b/templates/service/{{cookiecutter.file_name}}.py
new file mode 100644
index 0000000..6defd28
--- /dev/null
+++ b/templates/service/{{cookiecutter.file_name}}.py
@@ -0,0 +1,9 @@
+from aglbaseservice import AGLBaseService, AFBResponse
+import asyncio
+import os
+
+class {{cookiecutter.classname}}(AGLBaseService):
+
+ def __init__(self, ip, port=None, service='{{cookiecutter.aglsystemdservice}}'):
+ super().__init__(api='{{cookiecutter.api}}', ip=ip, port=port, service=service)
+