Skip to main content

A lightweight, stylish local web server for static files

Project description

softserved

PyPI version Python version License Downloads

A lightweight, stylish local web server for serving static files from your terminal. Perfect for quick demos, prototyping, and development workflows.

Quick Start

pip install softserved
softserved

Done. Your browser opens at http://localhost:8000 and you're serving.

Why softserved?

Just a static server. No fluff. softserved is a cli-based tool for watching vanilla html/css/js projects.

Features

Clean, minimal CLI — Starts a server in one command
Multiple styling themes — default, dark, and mono options
Live reload — Auto-refresh browser when files change
Lightweight — No bloat, just Python stdlib + colorama
Auto-opens browser — (optional) Opens your default browser automatically
Flexible directory serving — Serve any folder, any port

Installation

From PyPI (recommended)

pip install softserved

For contributors

git clone https://github.com/tolaoyelola/softserved.git
cd softserved
pip install -e .

Verify Installation

softserved --help

Usage

Basic Examples

# Serve current directory on port 8000
softserved

# Serve with custom port and directory
softserved -p 9001 -d ./my-site

# Enable live reload
softserved --reload

# Don't auto-open browser
softserved --no-browser

# Use dark theme for dark terminals
softserved --style dark

# No colors (mono)
softserved --style mono

# Combine options
softserved -p 8080 -d ./portfolio --reload --style dark

Available Options

Option Default Description
-p, --port 8000 Port to serve on
-d, --dir . Directory to serve
--no-browser false Don't auto-open browser
--reload false Enable live reload (requires watchdog)
--style default Terminal theme: default, dark, or mono

Requirements

Core dependencies:

  • Python 3.6+
  • colorama — for colored terminal output

Optional dependencies:

  • watchdog — for live reload functionality

Install all:

pip install -r requirements.txt

How It Works

  1. Server — Uses Python's built-in SimpleHTTPRequestHandler
  2. Styling — Colorama handles cross-platform terminal colors
  3. Live Reload — Watchdog monitors file changes and triggers browser refresh

Troubleshooting

"Port already in use"

softserved -p 8001  # Use a different port

"watchdog not installed"

pip install watchdog

Browser won't open

softserved --no-browser  # Disable auto-open
# Then manually navigate to http://localhost:8000

Stop the server

Press Ctrl+C to gracefully shut down

Contributing

Contributions welcome! Feel free to open issues or submit PRs.

License

MIT — See LICENSE file for details.

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

softserved-1.1.4.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

softserved-1.1.4-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file softserved-1.1.4.tar.gz.

File metadata

  • Download URL: softserved-1.1.4.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for softserved-1.1.4.tar.gz
Algorithm Hash digest
SHA256 18a1ce1c2d7c03429aa9084f7ffbe6520c1aa68a64772c30cb773b7ab08acbd2
MD5 a98ddfb46ace4932206ff03ec91e4fce
BLAKE2b-256 4e56a803db58ba911d241e2353d48ed3eab1777ea4519483f2439dab7647a6c7

See more details on using hashes here.

File details

Details for the file softserved-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: softserved-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for softserved-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4a4b55c6bcaf5d2fb5fd9a9c93c0cac4886558df2c51533fe51478ec6988e285
MD5 84955723ff1b29925b6d446ced15e715
BLAKE2b-256 e1f5d6e1d1625b612c93d4bdab0acf08c627cc15bb18dd8e39cdde2b15dc304d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page