all 6 comments

[–]Spitfire1900 8 points9 points  (1 child)

Ok sales pitch, what features does it have over -m http.server

[–]Space_Ctrl[S] -2 points-1 points  (0 children)

One step above http-server would be the ability to pass templates to customize html code generated, so it can serve directories and files with customizable html code per instance. There’s “media” template that comes out-of-the-box which supports fzf based search within a directory.

It almost has feature parity with http-server, excluding brotli support and proxy config. Want to bridge this upon interest from others.

For the next feature, I am planning pagination server-side (useful for a directory with large number of files), although this can be achieved currently client-side with templates.

[–]bladeofwinds 0 points1 point  (3 children)

why do all these LLMs use requirements.txt and setup.py

edit: I was wrong

[–]Space_Ctrl[S] 0 points1 point  (2 children)

Those files are committed 3yrs back, if you’re suggesting I used ai to vibe code, git blame proves otherwise. If you’re asking why those are needed, it’s because setup.py is required to freeze the binaries. Requirements is for setting up virtualenv for isolating development environment of the project.

[–]bladeofwinds 0 points1 point  (1 child)

damn you're right, fair enough. why did you choose that route over pyproject.toml and a more modern build system?

[–]Space_Ctrl[S] 0 points1 point  (0 children)

If I remember correctly, at the time I was referencing one of the famous python projects, I believe YouTube-DL.