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 dadjokes import Dadjoke
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.2.tar.gz (3.6 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.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dadjokes-1.3.2.tar.gz
  • Upload date:
  • Size: 3.6 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.2.tar.gz
Algorithm Hash digest
SHA256 6f892a550379b38e3c069241634f700625eb35419f7a0583977fef64d6a2bf3d
MD5 5fe9df1a015f119a69bab895770acbe6
BLAKE2b-256 e1763212fc36b03e63ef8c7b14808a428cda0482c11fc301fdf7d908d92ebd54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dadjokes-1.3.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1f6e1852048836562edbdd7129c39a1abebc62e315a8c5cd02e7cb98e7021fb8
MD5 a923b20d842e78b123b623de69d0b8b0
BLAKE2b-256 fe4aec0da39a07e20a4e1d77c4d1d5d02caab8bb531c35e56ce79db7ed407af9

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