Skip to main content

Serve local dirs.

Project description

PyServe

PyServe is the simple command interface for HTTP serving directories.

# Python 2.*
$ python -m SimpleHTTPServer

# Python 3
$ python

VS

# Python 2.*
$ serve

# Python 3
$ serve
pyserve/raw/master/example.png

Requirements

  • python (2.6+ or 3.0+)

Installation

Distribute:

$ easy_install pyserve

PIP:

$ pip install pyserve

Usage

$ serve --help

usage: serve [-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.

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

pyserve-0.2.0.tar.gz (74.5 kB view details)

Uploaded Source

File details

Details for the file pyserve-0.2.0.tar.gz.

File metadata

  • Download URL: pyserve-0.2.0.tar.gz
  • Upload date:
  • Size: 74.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyserve-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0bc8cf06143520546728f555a9511c0029b5f53cc9817c5c48407a415e64f462
MD5 146bf043ff3e50388a12c7bc01cd7ff2
BLAKE2b-256 93a7d24291e8b7581d496e27736ba35667c778c108e6a33d822c2aca79638962

See more details on using hashes here.

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