A local static web serve with built-in delay
Python
Switch branches/tags
Nothing to show
Latest commit 29c8ce2 Jun 22, 2012 @ericsuh Initial commit
Permalink
Failed to load latest commit information.
.gitignore Initial commit Jun 22, 2012
MANIFEST.in Initial commit Jun 22, 2012
README.md Initial commit Jun 22, 2012
setup.py Initial commit Jun 22, 2012
softserve.py Initial commit Jun 22, 2012

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.