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
Metadata
Release files for tmpserver 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tmpserver-0.0.2.tar.gz | 3.5 kB | Without provenance | Details for tmpserver-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tmpserver-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for tmpserver-0.0.2-py3-none-any.whl |
Total release size: 8.2 kB
Release files / tmpserver-0.0.2.tar.gz
| Download URL | tmpserver-0.0.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b7e8afa8f7b4ee2ad7c0e2d2716b390c41bf80c0f221ab3d6fbe4421f60f838
|
|
BLAKE2b-256 checksum How to use checksums |
b2f3095ef990659bf56e56d932e4bcf10bc3b8338d5eb1c994e6135057f48c3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / tmpserver-0.0.2-py3-none-any.whl
| Download URL | tmpserver-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c01824b1dabca175e919474e3fadd5fbe7490d0c7112edc38d3e5beff6641ffc
|
|
BLAKE2b-256 checksum How to use checksums |
48390a18ef0b0bceaad95a095d4eeadf66e957a2aef40b5c54a0b2d0125df216
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for tmpserver 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.