Parsing, securing python expression before passing it to eval()
<p>I want to take an input from the user may be like <code>foo() &gt; 90 and boo() == 9 or do() &gt; 100</code> and use eval on the server side to to evaluate this expression.</p>

<p>For security I want to restrict user to add limited functions and operators by keeping a check (against some data-structure) before I pass it to eval function.</p>

<p>PS: Input comes from a web page</p>

<p>Thanks</p>
