davep / textual-dad-joke

A dad joke widget for Textual. Seriously.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Textual Dad Joke

Introduction

This library provides a widget that displays a dad joke. No, I'm not even kidding.

Installing

The package can be installed with pip or related tools, for example:

$ pip install textual-dad-joke

Then what?

Import it as you would any other widget from a library:

from textual_dad_joke import DadJoke

and then compose the DadJoke widget into your application as you would any other widget.

The widget has a tell method if you want it to tell another joke. It'll also swallow any errors but will post a DadJoke.FellFlat message if there was an error.

Erm... okay. Anything else I should know?

The widget needs an internet connection and is using icanhazdadjoke.com as the backend. Also, I won't be held responsible for the content of any joke served. That's all on you.

About

A dad joke widget for Textual. Seriously.

License:MIT License


Languages

Language:Python 60.1%Language:Makefile 39.9%