Skip to main content

A python wrapper for https://sv443.net/jokeapi/v2

Project description

Jokepy

Python Wrapper for sv443 JokeApi

Installation (Install versions > 1.0.0)

pip install jokepy

Importing Jokepy

from jokepy import Jokepy

Creating Jokepy object

j = Jokepy(categories=[],flags  =  [],idRange=[(startId),(endId)],type  =  (single/twopart),searchstring  = (searchstring))

Getjoke

j.getjoke()

Params

  • Categories : ['Programming' , 'Miscellaneous' , 'Dark']
  • Blacklist flags :['nsfw' , 'religious' , 'political' , 'racist' , 'sexist' ]
  • types : single / twopart

Exceptions

  • InvalidCategoryException (if the api doesnt supported categories)
  • InvalidFlagException (if the api doesnt support blackList flags)
  • InvalidTypeException(if the type is invalid)
  • InvalidIdRangeException (if the idRange is invalid)

Dependencies

API Documentation

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

jokepy-1.0.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

jokepy-1.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file jokepy-1.0.3.tar.gz.

File metadata

  • Download URL: jokepy-1.0.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for jokepy-1.0.3.tar.gz
Algorithm Hash digest
SHA256 5ad3401aff06a58c9ec7997554ea81cbb8fdf2ff52f2c9f2d04fec50bfc634d4
MD5 02dcdd3aeb036a000fe9ba2e4d280251
BLAKE2b-256 35937834975fa3fc6ce136bf8d33a295ca0f71c0e54215d34a6dd7ac883cd550

See more details on using hashes here.

File details

Details for the file jokepy-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: jokepy-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for jokepy-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 813016c27789e24ccba99f312f6f5e2b10d50633651e21eaa5d3f07210e617ba
MD5 e03ec4e72297ed50eef6a507394e156e
BLAKE2b-256 48204c3dc78902d6b754f5b0f2ddf3f0e74a3c9e50a436aab0648c1f79965ad3

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