filequeue (pypi): A thread-safe queue object which is interchangeable with the stdlib Queue. Any overflow goes into a compressed file to keep excessive amounts of queued items out of memory
Keywords: queue|thread-safe|file|gzip