upload pyapp
This commit is contained in:
15
pyapp/templates/application.py
Normal file
15
pyapp/templates/application.py
Normal file
@@ -0,0 +1,15 @@
|
||||
template = """from pyapp.application import PyappApplication
|
||||
from runners import YourCustomRunner
|
||||
|
||||
@PyappApplication("your_application_name")
|
||||
class Application:
|
||||
@staticmethod
|
||||
def start():
|
||||
'''
|
||||
call default or your custom runners here, code will be executed
|
||||
automatically when type "pyapp run" in terminal
|
||||
|
||||
example:
|
||||
YourCustomRunner("path_to_your_config").run()
|
||||
'''
|
||||
"""
|
||||
Reference in New Issue
Block a user