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

Uploaded Source

Built Distribution

http_servers-0.0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: http_servers-0.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for http_servers-0.0.2.tar.gz
Algorithm Hash digest
SHA256 651a995bc3461082a46b1b915035f719db29216f32385684d812a847d6aa3e60
MD5 61826ad538ff6e9628aa3706c2c9b3a7
BLAKE2b-256 f3bb8e581cd47fdd18ecc95bfd7f847674707d2a306e2c2cca5de06c07185e6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for http_servers-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e34508858bff1112c06244d36d6e8cafa2589ebfeaca16b9fb9638fa25e6e1a0
MD5 de3aaf6787492780dff4a7c1e0764ca8
BLAKE2b-256 c539eab71b352291d9163c9a2aac67f7de4fb919741db770ca10e14d7351df25

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