<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>On May 17, 2014, at 6:53 AM, Laurens Van Houtven <_@lvh.io> wrote:</div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div>Hi everyone!<br></div></div></div></blockquote><br><blockquote type="cite"><div dir="ltr"><div><div>thimble is a library that makes it easy to wrap blocking objects with a thread pool to give you an async API. In particular, it lets you selectively wrap blocking methods, and takes an explicit reactor and thread pool, making it at least slightly harder to do the obvious but potentially bad thing and tricky to test thing (global reactor state, using the reactor thread pool). </div>

</div></div></blockquote><div><br></div><div>Thanks for putting this together.</div><br><blockquote type="cite"><div dir="ltr"><div>(It's a thimble because it lets you play with threads without pricking yourself :-))</div></div></blockquote><div><br></div><div>I love the name, and the rationale :).</div><br><blockquote type="cite"><div dir="ltr"><div>This is a small library: it doesn't really fix any big engineering problems, and that's okay. It just removes a bunch of boilerplate I've seen in many a Twisted software project, usually boilerplate that's implemented using the suboptimal methods described above.</div></div></blockquote><div><br></div><div>I think this is the sort of thing that should move into Twisted itself, eventually.  Thoughts?</div><br><blockquote type="cite"><div dir="ltr"><div>The README should run you through it real quick: <a href="https://pypi.python.org/pypi/thimble">https://pypi.python.org/pypi/thimble</a><br></div><div><br></div><div>This is just an early release. I expect that the documentation isn't good enough to get best practices out the door, particularly in setting up thread pools. I think it's pretty decent and probably already worth a look, though :-)<br>

<br>Thanks to Rackspace for letting me write it open source & on company time :-)<br><br></div>hth<br>lvh<br><br></div>
_______________________________________________<br>Twisted-Python mailing list<br><a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python<br></blockquote></div><br></body></html>