Skip to content

Commit

Permalink
flask app skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
JF1008 committed Sep 12, 2019
1 parent 02b73a6 commit 320181b
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 0 deletions.
Empty file added .gitignore
Empty file.
Empty file added app/__init__.py
Empty file.
Binary file added app/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file added app/__pycache__/app.cpython-36.pyc
Binary file not shown.
19 changes: 19 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from flask import Flask, jsonify, request
import logging


logger = logging.getLogger(__name__)
app = Flask(__name__)

@app.route('/br')
def index():
logger.info('covfefe')
return jsonify(request.json)


def main():
app.run('0.0.0.0', 5000)

if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG)
main()
10 changes: 10 additions & 0 deletions bombay_party.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Metadata-Version: 1.0
Name: bombay-party
Version: 0.0.0
Summary: UNKNOWN
Home-page: UNKNOWN
Author: UNKNOWN
Author-email: UNKNOWN
License: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN
9 changes: 9 additions & 0 deletions bombay_party.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
README.md
setup.py
app/__init__.py
app/app.py
bombay_party.egg-info/PKG-INFO
bombay_party.egg-info/SOURCES.txt
bombay_party.egg-info/dependency_links.txt
bombay_party.egg-info/entry_points.txt
bombay_party.egg-info/top_level.txt
1 change: 1 addition & 0 deletions bombay_party.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 3 additions & 0 deletions bombay_party.egg-info/entry_points.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[console_scripts]
server = app.app:main

1 change: 1 addition & 0 deletions bombay_party.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app
Empty file added packages.txt
Empty file.
20 changes: 20 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import setuptools
from setuptools import find_packages


packages = find_packages()


SETUP = dict(
name='bombay-party',
packages=packages,
entry_points={
'console_scripts': [
'server = app.app:main',
],
},
)


if __name__ == '__main__':
setuptools.setup(**SETUP)

0 comments on commit 320181b

Please sign in to comment.