softserve

A local web server with built-in delay


License
Other
Install
pip install softserve==0.5

Documentation

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.