Python Forum
Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SimpleHTTPServer
#1
Hello, I'm wanting to host a localhost:8000 server on a ChromeOS, I don't want to have to install crouton or anything like that, I was just wandering if there was an online ide that had the libraries for that, because I can't install chrome extensions (it's a school chromebook, and they quite a bit blocked). Any info would help a ton!!!
Reply
#2
here is my HTTP server.  i wrote this a few years ago when a was getting started in python.  it forks each request, so it is easy for someone to overload your server (it was used by developers of another project).  if the file found by the server is a .py file, and is executable, this server tries to load it as a module and tries to call "handle_http_request".


feel free to use/copy any parts (or all) as needed.

for alternate access, here is a link:

http://skaperen.s3.amazonaws.com/httpd.py
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#3
(Oct-20-2016, 02:01 PM)20howellm Wrote: Hello, I'm wanting to host a localhost:8000 server on a ChromeOS, I don't want to have to install crouton or anything like that,
If you don't want to install something,i am not sure that ChromeOS has something build.
Flask should be a obvious choice you should look into.
There are full work spaces on web like Clould9,Pythonanywhere  you can look into.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020