micone.utils package

Submodules

micone.utils.spinner module

Custom spinner class

class micone.utils.spinner.Spinner(text: str, spinner: str, interactive: bool = True)[source]

Bases: object

A custom spinner class that makes use of halo and click

Parameters:
  • text (str) –

  • spinner (str) –

interactive

True if the Spinner instance is interactive

Type:

bool

text

The text currently in the spinner

Type:

str

fail(text: Optional[str] = None) None[source]

Display text on failure

start() None[source]

Start the spinner

stop() None[source]

Stop the spinner

succeed(text: Optional[str] = None) None[source]

Display text on success

property text: str

The text in the spinner

Module contents