Skip to main content

http-servers is a simple, no-dependencies command-line static HTTP server.

Project description

http-servers: static HTTP server CLI

http-servers is a simple, no-dependencies command-line static HTTP server.

Purposes

  • Similar to node.js http-server, but without the need to install node
  • This package doesn't bring additional dependencies

Installation

pip install http-servers

Documentation - RTF(riendly)M

$ http-server --help
usage: http-server [--cors] [-h HOST] [-p PORT] [-d SOURCE_DIR] [--cache] [--help]

Run HTTP server in given folder

optional arguments:
  --cors                Pass this flag to enable cors
  -h HOST, --host HOST  Address on which server will listen
  -p PORT, --port PORT  Port on which server will listen
  -d SOURCE_DIR, --source-dir SOURCE_DIR
  --cache               Watch changes in directory and invalidate cache on change.
  --help                Show this help

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

http_servers-0.0.2.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

http_servers-0.0.2-py3-none-any.whl (3.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