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

Uploaded Source

Built Distribution

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

dadjokes-1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dadjokes-1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.25.0 CPython/3.6.8

File hashes

Hashes for dadjokes-1.0.tar.gz
Algorithm Hash digest
SHA256 cb4f082ae5e91419a50f1073783b687265b18580878c008c7d357e258b7febc8
MD5 90d260e94050b89c9fa0fe8b4c01b454
BLAKE2b-256 209de672a007e8d37cad64d5601e9d25be52afc4ad7f2e6a4cd66677abe2438b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dadjokes-1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.25.0 CPython/3.6.8

File hashes

Hashes for dadjokes-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 487b1548ace242ecb62f2ebfbf3f758c5b6da5eb67208a571d7d15268387568e
MD5 20a18d8c4c25ddd6218b49e1c5938006
BLAKE2b-256 288a7434222255ae45a079b6e8d30b83c27997b63996699c524f7dd8cbf588f3

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