Skip to main content

icanhazdadjoke api wrapper

Project description

Dadjokes

icanhazdadjoke API wrapper, to programatically cheer your code up.

Installation

pip install dadjokes

Usage

Example

from dadjoke import Dadjokes
dadjoke = Dadjoke()
print(dadjoke.joke)

The previous snippet will print a random joke.

Dadjoke objects can be built from an id as well. You can get those calling the .id property of a Dadjoke. If you are using this in a Slack app, you might find the .as_slack property useful.

cli

Please check available options with:

dadjokes -h

Project details


Download files

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

Source Distribution

dadjokes-1.0.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

dadjokes-1.0-py3-none-any.whl (3.1 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