Popular recipes by Brendan O'Connor http://code.activestate.com/recipes/users/4170520/2009-05-28T16:32:11-07:00ActiveState Code RecipesWSGI option parsing & type conversion (Python)
2009-05-28T16:32:11-07:00Brendan O'Connorhttp://code.activestate.com/recipes/users/4170520/http://code.activestate.com/recipes/576784-wsgi-option-parsing-type-conversion/
<p style="color: grey">
Python
recipe 576784
by <a href="/recipes/users/4170520/">Brendan O'Connor</a>
(<a href="/recipes/tags/option_parsing/">option_parsing</a>, <a href="/recipes/tags/wsgi/">wsgi</a>).
Revision 2.
</p>
<p>fetches named parameters from the WSGI querystring, plus defaults for missing values, and type conversions so you dont accidentally have strings when you want numbers.</p>