Skip to content

Instantly share code, notes, and snippets.

@adrianmihalko
Created February 26, 2021 21:42
Show Gist options
  • Save adrianmihalko/62ed2ea8dc1f75780d3bf5d2a292cc86 to your computer and use it in GitHub Desktop.
Save adrianmihalko/62ed2ea8dc1f75780d3bf5d2a292cc86 to your computer and use it in GitHub Desktop.
One line webserver with request logging with python twisted
python -c 'from twisted.web.server import Site; from twisted.web.static import File; from twisted.internet import reactor; from twisted.python import log; import sys; log.startLogging(sys.stdout); reactor.listenTCP(1990, Site(File("."))); reactor.run()'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment