mytools/mserve

20 lines
461 B
Python
Executable file

#!/usr/bin/env python
# docstring=serve files with http.
import subprocess as sp
def run():
sp.run(["miniserve",
"--auth=guest:Super9000!",
"--color-scheme-dark=monokai",
"--qrcode",
"--dirs-first",
"--hide-version-footer",
"--show-wget-footer",
"--title=Rano's quick share"
])
if __name__ == "__main__":
run()
# implement a switch for easy --upload-files=DIR