跳转到主要内容

服务本地目录。

项目描述

PyServe

PyServe 是用于HTTP服务目录的简单命令行界面。

Build Status
# Python 2.*
$ python -m SimpleHTTPServer

# Python 3
$ python -m http.server

VS

# Python 2.*
$ pyserve

# Python 3
$ pyserve
https://raw.github.com/klen/pyserve/master/example.png

要求

  • python (2.6+ 或 3.0+)

安装

分发:

$ easy_install pyserve

PIP:

$ pip install pyserve

使用

$ pyserve --help

usage: pyserve [-h] [-p PORT] [-s] [-a] [path]

Serve current directory

positional arguments:
path                  Path to serve directory.

optional arguments:
-h, --help            show this help message and exit
-p PORT, --port PORT  The port of the webserver.
-s, --share           Make server available externally.
-a, --autoindex       Enable autoindex files.
-d, --hidden          Hide system files

项目详情


下载文件

下载适用于您平台文件的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分发

pyserve-0.2.8.tar.gz (76.6 kB 查看哈希值)

上传时间:

由以下赞助

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面