repo: init
welcome 👋 to my world 🌍
This commit is contained in:
parent
531fc54f1f
commit
edcf6f758e
11 changed files with 134 additions and 2 deletions
11
templates/python/python-app/python-app
Normal file
11
templates/python/python-app/python-app
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from flask import Flask
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def hello_world():
|
||||
return 'Hello, World!'
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host="0.0.0.0", port=8080)
|
11
templates/python/python-app/setup.py
Normal file
11
templates/python/python-app/setup.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(name='python-app',
|
||||
version='0.1.0',
|
||||
# Modules to import from other scripts:
|
||||
packages=find_packages(),
|
||||
# Executables
|
||||
scripts=["python-app"],
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue