password_ipc module

class password_ipc.FIFO(fname)[source]

Bases: object

interprocess-communication with named pipes

create()[source]

create the FIFO in a way that only the current user can access it.

delfifo()[source]

remove FIFO

isFifo()[source]

make sure file is still a FIFO and has correct permissions

read(timeout=0)[source]

read from fifo until timeout. If timeout is 0 it will wait forever for input.

write(string, timeout=0)[source]

write to fifo until timeout. If timeout is 0 it will wait forever for an other process that will read this.

class password_ipc.TempPasswordThread(string)[source]

Bases: Thread

in case BIT is not configured yet provide password through temp FIFO to backintime-askpass.

read()[source]

read fifo to end the blocking fifo.write use only if thread timeout.

run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

starter()[source]
stop()[source]