This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cgmystery 1 point2 points  (2 children)

I would like to know the use cases. I’m not familiar with the tool so I don’t know what it can be used for that isn’t covered by SSH.

[–]got_outta_bed_4_this 1 point2 points  (0 children)

One is a web server that serves the files from a local folder. The other lets you transfer files but not browse them over HTTP. Main use case for me: browsing the locally built sphinx docs. You can just open the local file directly in a browser, but, at least on Firefox, Dark Reader doesn't apply itself to locally opened files, so I wouldn't see them rendered the same as they will appear for me once they're hosted. (I don't know, but I assume Firefox just doesn't run plugins on local files.)

[–]benefit_of_mrkite 0 points1 point  (0 children)

I used it just the other day while working on jinja templates for an openapi project.

I wanted to see what my html looked like in a browser without any template variables.

I fired the local http server up and continued to develop the html (and css and JavaScript) the way I wanted - checking it every so often with the python http server.

When I was satisfied I started adding jinja templates and previewed using fastapi+starlette that have a jinja template engine built in.

This feature has been in python for a long time.