1 2 3 4 5 6 7 8 9
#!/usr/bin/python3 import collections Progress = collections.namedtuple( 'CurrentProgress', 'bytes percent speed eta', defaults=[0, 0, 0, 'infinite'])