You're reading the documentation for a development version. For the latest released version, please have a look at v0.8.2.

snl_d3d_cec_verify.text package

class snl_d3d_cec_verify.text.Spinner

A context manager which provides an ASCII spinner on stdout

Running the spinner without input:

>>> with Spinner() as spin:
...     for _ in range(4):
...         spin()
- / | \ 

If text passed to the spinner contains a percentage sign, the spinner will display the percentage value:

>>> with Spinner() as spin:
...     for line in ["1.1%", "1.2%"]:
...         spin(line)
1.1%    1.2%    
__call__(text=None)

Increment the spinner and write to stdout

Parameters:

text (Optional[str]) – text to parse for percentage sign