Skip to main content

A dad joke widget for your Textual applications

Project description

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_data_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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

textual_dad_joke-0.0.1-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page