Skip to content

Instantly share code, notes, and snippets.

@lordjabez
Last active November 10, 2023 19:09
Show Gist options
  • Save lordjabez/81bb3647bb61f5f272f4108c7e19f1fd to your computer and use it in GitHub Desktop.
Save lordjabez/81bb3647bb61f5f272f4108c7e19f1fd to your computer and use it in GitHub Desktop.
Simply python server that echos back what it's sent
#!/usr/bin/env python3
import bottle
@bottle.route('<path:path>', method=['GET', 'POST', 'PUT', 'PATCH'])
def echo(path):
return bottle.request.body
bottle.run(host='localhost', port=8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment