Just in terms of configuration. It seems that Guard, for example, is designed to cache the credentials and maintain a session. My requirement is just for a single request, so session maintenance seems like overhead.<div><br>
</div><div>Also in upskill time. The Twisted NPE book, for example, says &quot;It might take you a little while to understand all the classes and interfaces in twisted.cred, and at first you might wonder why it&#39;s necessary to have a system with so many moving parts. The answer is that this system is designed to be extremely flexible.&quot; (pg 92)<div>
That sounds like a great toolset, but the cost is to those that require the minimalist solution, but still need to develop an understanding of the greater picture to achieve that.</div><div><br></div><div>Finding Twisted documentation seems to be generally difficult, so if I can find the &#39;lightest&#39; (extra code) and &#39;lightest&#39; (ramp-up time) solution, that what I was hoping for a pointer towards.</div>
<div><br></div><div>Thanks</div><div>Brad</div><div><br></div><div>PS - did you mean µs?? Or have you really measured the power consumption in Watts?</div><div><br></div><div><br></div><div><div class="gmail_quote">On 9 February 2010 08:32,  <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On 07:23 pm, <a href="mailto:brad.milne@devx.runthered.com" target="_blank">brad.milne@devx.runthered.com</a> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a backend Twisted application with a front end in Django. Some of<br>
their communication is via web services. Currently they are deployed on the<br>
same box but may be separated in future. I want to enforce some basic<br>
authentication on the web services, so some lightweight http header<br>
authentication looks best. I&#39;ve found the twisted.web.guard api, but it<br>
seems to be more heavyweight than I require (e.g. running up a Portal).<br>
Given the breadth of the Twisted apis, I&#39;m confident I wouldn&#39;t have to<br>
hand-craft something to check the auth header myself. What do you guys<br>
suggest?<br>
</blockquote>
<br></div></div>
A portal takes about 28.9 µW to &quot;run up&quot; (given contemporary hardware). What makes you say this is &quot;heavyweight&quot;?<br>
<br>
Jean-Paul<br>
<br>
<br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div><br></div></div>