Asynchronous file writing possible in python?

aio-write, asynchronous, python

Solution

Twisted has non-blocking writes on file descriptors. If you're writing async code, I'd expect you to be using twisted, anyway. :)

Problem

Is there an easy way write to a file asynchronously in Python? I know the file io that comes with Python is blocking; which is fine in most cases. For this particular case, I need writes not to block the application at all, or at least as minimally as possible.

Original source

Related problems