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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file tmpserver-0.0.2.tar.gz.

File metadata

  • Download URL: tmpserver-0.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.1

File hashes

Hashes for tmpserver-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4b7e8afa8f7b4ee2ad7c0e2d2716b390c41bf80c0f221ab3d6fbe4421f60f838
MD5 08dd616b4e10beb7e68e2dc4799bf252
BLAKE2b-256 b2f3095ef990659bf56e56d932e4bcf10bc3b8338d5eb1c994e6135057f48c3c

See more details on using hashes here.

File details

Details for the file tmpserver-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: tmpserver-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.1

File hashes

Hashes for tmpserver-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c01824b1dabca175e919474e3fadd5fbe7490d0c7112edc38d3e5beff6641ffc
MD5 4e11236f0e8254df887ffbf5699dbb21
BLAKE2b-256 48390a18ef0b0bceaad95a095d4eeadf66e957a2aef40b5c54a0b2d0125df216

See more details on using hashes here.

Supported by

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