Skip to content

Commit

Permalink
Backup #4
Browse files Browse the repository at this point in the history
Signed-off-by: DhilipSiva Bijju <dhilipsiva@gmail.com>
  • Loading branch information
dhilipsiva committed Feb 23, 2013
1 parent 50f9116 commit c2bc8a0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitconfig
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@
trustExitCode = true trustExitCode = true
[push] [push]
default = matching default = matching
[branch]
autosetuprebase = always
2 changes: 1 addition & 1 deletion .vimrc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let g:netrw_sort_sequence='\.py$,\.conf$' "Sort sequence




filetype off filetype off
"autocmd BufWritePost *.py call Flake8() "apply flake8 as files are saved autocmd BufWritePost *.py call Flake8() "apply flake8 as files are saved
autocmd BufWritePre *.py :%s/\s\+$//e "Trim the line endings autocmd BufWritePre *.py :%s/\s\+$//e "Trim the line endings
syntax on syntax on


Expand Down
28 changes: 28 additions & 0 deletions debug_rest_client.py
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,28 @@
'''
A simple flask script to print the
request info. useful for dubugging your
rest client.
dhilipsiva@gmail.com
'''
from flask import Flask, request

app = Flask(__name__)


@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def hello(path):
app.logger.debug(path)
app.logger.debug(request.headers)
app.logger.debug(request.args)
app.logger.debug(request.form)
return 'hello'


if __name__ == "__main__":
app.run(
host="0.0.0.0",
port=8888,
debug=True)

0 comments on commit c2bc8a0

Please sign in to comment.