Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (30 sloc) 1.243 kb

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.

Jump to Line
Something went wrong with that request. Please try again.