create temporary http server quickily,and show qrcode in terminal
Project description
tmpserver
v0.0.2
指定目录快速创建临时http服务,并显示url二维码
install
pip install tmpserver
usage
tmpserver -h
usage: tmpserver [-h] [--bind ADDRESS] [--directory DIRECTORY] [--qr] [port]
positional arguments:
port Specify alternate port [default: 8000]
optional arguments:
-h, --help show this help message and exit
--bind ADDRESS, -b ADDRESS
Specify alternate bind address [default: all
interfaces]
--directory DIRECTORY, -d DIRECTORY
Specify alternative directory [default:current
directory]
--qr show qrcode in terminal
example
(py3) ➜ tmpserver --qr -d /tmp/ 8899
█████████████████████████████████
█████████████████████████████████
████ ▄▄▄▄▄ █ ▄██▀ ▄ ▀█ ▄▄▄▄▄ ████
████ █ █ █▄█▀ ▀ ▀███ █ █ ████
████ █▄▄▄█ █▄▀ ▄▄ ▀██ █▄▄▄█ ████
████▄▄▄▄▄▄▄█▄▀ █▄▀ █▄█▄▄▄▄▄▄▄████
████ █▀▄▄▄▄ ▄▀██ █▀▄▄ ▀▀ ▀ ▄████
████▀▀█▄▄▄▄█ ▄██ ▀██▀██▀█ ▀▀ ████
████ ▀ ▀▄█ ▀▄▄▄ █▀ █ ██▀▄████
████ ▄▀ ▄▄▄ █▀█ ▄▄▀▀█▀ ▄ ▄ ▄ ████
████▄█▄███▄▄ ▄▀▀▀▄▄ ▄▄▄ ▄ █████
████ ▄▄▄▄▄ █ ▀▄▀█▀ █▄█ ▄ █ ████
████ █ █ █ ▄ █▄▄ █▄▄▄ ▄ █▄ ████
████ █▄▄▄█ ██▀ █▄█ █▄▀ ▀▀▄ ████
████▄▄▄▄▄▄▄█▄▄▄██▄▄█▄█▄█▄▄██▄████
█████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Serving HTTP on 192.168.1.119 port 8899 with directory:/tmp/ (http://192.168.1.119:8899/) ...
dependence
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tmpserver-0.0.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for tmpserver-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c01824b1dabca175e919474e3fadd5fbe7490d0c7112edc38d3e5beff6641ffc |
|
MD5 | 4e11236f0e8254df887ffbf5699dbb21 |
|
BLAKE2b-256 | 48390a18ef0b0bceaad95a095d4eeadf66e957a2aef40b5c54a0b2d0125df216 |