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 details)

Uploaded Python 3

File details

Details for the file textual_dad_joke-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for textual_dad_joke-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b4b0d8d37be51e3552af2c432359f023e5ef0f7f31207e3507a4950c31afc77
MD5 4ab7f5144484b4baf24c5b625dc36afd
BLAKE2b-256 91c96427580b5ffb5f5ee23c5267341eb168828dade1ff55f8a62f6bba1065f6

See more details on using hashes here.

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