Created
September 28, 2018 18:09
-
-
Save devgiordane/5fbfeb33eff2a099f50f2218d4400a3d to your computer and use it in GitHub Desktop.
creates a simple web server using the standard python http.server library.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http.server | |
import socketserver | |
PORTA = 8000 | |
Handler = http.server.SimpleHTTPRequestHandler | |
with socketserver.TCPServer(("", PORTA), Handler) as httpd: | |
print(f"servindo na porta {PORTA}") | |
httpd.serve_forever() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment