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.

You can use the iterable DadjokeSearch iterable class to search jokes by term, with an optional limit.

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.3.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dadjokes-1.3.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file dadjokes-1.3.1.tar.gz.

File metadata

  • Download URL: dadjokes-1.3.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for dadjokes-1.3.1.tar.gz
Algorithm Hash digest
SHA256 6d6ad48c2cd0c554fcfbbf0b5aa027118240cd3e7341be3ff612e886b19623bd
MD5 5cdfbb471c996fd05f366a53dcdc80c3
BLAKE2b-256 b039902feb8785d36d491bb2e70f9825837a9f0848ece834868da39095efbe11

See more details on using hashes here.

File details

Details for the file dadjokes-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: dadjokes-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for dadjokes-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99dcd31b7b6afe107365718e40e6035892236ebbe25142a48141932fa031b9d4
MD5 4f650bff29c2495b4d8b36f1d4cca0b0
BLAKE2b-256 ee60509e38d2939faa7df6003467f20934b184bf11029fe817d477016a31c272

See more details on using hashes here.

Supported by

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