Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A local static web serve with built-in delay
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
MANIFEST.in
README.md
setup.py
softserve.py

README.md

Softserve.py

Use softserve.py if your other servers are just too fast.

When would servers be too fast?

Say you're developing a webapp and want to see how it renders to a user with network lag (e.g. a flash of unstyled content, flash of unstyled text, delays in dynamically requesting and loading content via JavaScript). Just serving files locally doesn't really delay anything, and the Web Inspector, while useful, doesn't give you a good qualitative sense for what the user would experience on a slow network connection.

Use softserve.py and test your web app. Make sure it doesn't suck on a slow net connection.

Installation

Install with pip install softserve.

Use

Run with softserve.py [path to your files here] (by default, uses current working directory). Options:

  • --port: run from alternate port
  • --min: minimum delay time in milliseconds
  • --max: maximum delay time in milliseconds

License

MIT license.

Something went wrong with that request. Please try again.