Is it possible to use a USB flash drive to serve files locally to a browser?
Using just python, is it possible to possible to 开发者_开发百科use a USB flash drive to serve files locally to a browser, and save information off the online web?
Ideally I would only need python.
Where would I start?
You can use portable python on the flash drive. Portable Python And code some sort of little python webserver, handling get and post extending the BaseHTTPRequestHandler class.
This doesn't seem much different then serving files from a local hard drive. You could map the thumbdrive to always be something not currently used on your machine (like U:).
精彩评论