Skip to main content

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

qrcode

Project details


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)

Uploaded Source

Built Distribution

tmpserver-0.0.2-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page