How to use the yaspin.spinners.Spinners.simpleDotsScrolling function in yaspin

To help you get started, we’ve selected a few yaspin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pavdmyt / yaspin / examples / kb_interrupt_handler.py View on Github external
def unpacker():
    sp = yaspin(Spinners.simpleDotsScrolling, side="right")

    try:
        sp.start()
        for p in range(0, 101, 5):
            sp.text = "{0}% Unpacking".format(p)
            time.sleep(random.random())
        sp.green.ok("✔")
    except KeyboardInterrupt:
        sp.red.fail("✘")
        sp.stop()
github pavdmyt / yaspin / examples / basic_usage.py View on Github external
def pre_setup_example():
    swirl = yaspin(
        spinner=Spinners.simpleDotsScrolling,
        text="swirl",
        color="red",
        side="right",
        sigmap={signal.SIGINT: fancy_handler},
    )

    with swirl as sp:
        time.sleep(2)

    with swirl as sp:
        sp.text = "new swirl"
        sp.reversal = True
        time.sleep(2)
github pavdmyt / yaspin / examples / signals.py View on Github external
def unpacker():
    swirl = yaspin(
        spinner=Spinners.simpleDotsScrolling,
        sigmap={signal.SIGINT: fancy_handler},
        side="right",
    )
    with swirl as sp:
        for p in range(0, 101, 5):
            sp.text = "{0}% Unpacking".format(p)
            time.sleep(random.random())
        sp.green.ok("✔")
github pavdmyt / yaspin / examples / spinner_properties.py View on Github external
def context_mngr_setup():
    with yaspin(Spinners.noise, text="Noise spinner") as swirl:
        time.sleep(2)

        swirl.spinner = Spinners.simpleDotsScrolling
        swirl.text = "Scrolling Dots spinner"
        swirl.color = "magenta"

        time.sleep(2)