Skip to content

malimba/pauselib

Repository files navigation

pauselib

A tiny Python utility library for pausing with style — timed waits, animated messages, and input timeouts when bare time.sleep() isn't enough.

Python

Why?

Ever wrapped everything in try/except just to rerun on failure? Or wanted a countdown with a message before retrying? pauselib gives you readable pause helpers without boilerplate.

Features

  • pause(seconds) — simple sleep wrapper
  • with_msg(seconds, message) — wait with a printed message
  • for_input(seconds) — timed input prompts
  • Custom exception types in exceptions.py
  • Test harness under tests/

Quick start

from pause import pause

pause.pause(3)
pause.with_msg(5, "Retrying in…")
pause.for_input(10)

Or explore interactively:

python test.py

Project layout

pause.py         # Main API
core/            # Implementation details
exceptions.py    # Custom error types
tests/           # Test cases

malimba

About

Ever coded for so long, only to handle errors with try except errors which just make you rerun or run some code over and over again?Or maybe you've been wanting to pause your program for some seconds with a little animation &/ text? Try this!

Resources

License

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors