Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from twisted.web import server, resource
from twisted.web.static import File
from twisted.internet import reactor
resource = File('/home/uploads/')
reactor.listenTCP(8080, server.Site(resource))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment