summaryrefslogtreecommitdiffstats
path: root/gamechestcli/gamechest/structures.py
blob: 35a8861d918672e0ff05c3226cb9320af151e7d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from typing import NamedTuple


class Progress(NamedTuple):
    '''
    linemode(False)
        Change number of bytes to number of lines in nbbytes field. Same is
        true for speed field which in this case will be expressed as lines per
        second.

    percent(0)
        Current percentage for the current step.

    step(0)
        Current step index.

    steps_count(1)
        Number of steps.

    nbbytes(0)
        Number of bytes currently processed in this step.

    speed(0)
        Current number of bytes per second processed.

    eta("inifinite")
        Current estimation for the end of this step.
    '''

    linemode: bool = False

    percent: int = 0
    step: int = 0
    steps_count: int = 1

    nbbytes: int = 0
    speed: int = 0
    eta: str = "infinite"