Metadata-Version: 2.4
Name: shhhinterrupt
Version: 0.1.0
Summary: Handles keyboard interrupt silently and gracefully
Project-URL: homepage, https://github.com/RobertDusk/py-shhhinterrupt
Author-email: Robert Dusk <robert@dusk.monster>
Maintainer-email: Robert Dusk <robert@dusk.monster>
Keywords: bar,foo
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Utilities
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# shhhinterrupt

Gracefully and shhh... _(silently)_ handles keyboard interrupts.

You can either pass a string to print, e.g. `@handle_interrupt("Please come again.")` or you can use the decorator without parentheses to use the default message `@handle_interrupt`.

Full example:

    from shhhinterrupt import handle_interrupt
    import time
    
    @handle_interrupt("He walked away.")
    def main():
        print("What's your name?")
        time.sleep(5)
        print("Tony!")

    if __name__ == "main":
        main()
