upload pyapp
This commit is contained in:
3
pyapp/templates/__init__.py
Normal file
3
pyapp/templates/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
"""
|
||||
Template modules for PyApp
|
||||
"""
|
||||
BIN
pyapp/templates/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
pyapp/templates/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
BIN
pyapp/templates/__pycache__/application.cpython-39.pyc
Normal file
BIN
pyapp/templates/__pycache__/application.cpython-39.pyc
Normal file
Binary file not shown.
BIN
pyapp/templates/__pycache__/config.cpython-39.pyc
Normal file
BIN
pyapp/templates/__pycache__/config.cpython-39.pyc
Normal file
Binary file not shown.
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()
|
||||
'''
|
||||
"""
|
||||
9
pyapp/templates/config.py
Normal file
9
pyapp/templates/config.py
Normal file
@@ -0,0 +1,9 @@
|
||||
template = """
|
||||
runner:
|
||||
general:
|
||||
|
||||
workspace:
|
||||
name: workspace_name
|
||||
root_dir: "workspaces"
|
||||
|
||||
"""
|
||||
Reference in New Issue
Block a user