开发者

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:).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜