API Wrapper for sv443's joke api
Project description
JokeAPI Wrapper by TheWever
Import jokeapie
import jokepie # imports package
Create a client
client = jokepie.Client() # returns client objects
Get a joke
joke = client.get_joke() # returns Joke object
Post a joke
client.upload_joke('Insert Joke', 'category') # returns True on exception
Sample:
import jokepie
client = jokepie.Client()
joke = client.get_joke('dog')
print(joke.joke)
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
jokepie-1.0.1.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file jokepie-1.0.1.tar.gz
.
File metadata
- Download URL: jokepie-1.0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2fb3f2eee18568bdfb86f5e1843be1dfef82f7d6a46087e304585b30dcab040 |
|
MD5 | 29c789bced2a97030443874f04c4309c |
|
BLAKE2b-256 | 821d2e11494c42e2651c41ca284edeff918c054b8ae2d63f431a7460400962bc |
File details
Details for the file jokepie-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: jokepie-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b06a816cb039635839aa4fedcd6d7ce715e0a859ded05c8032e786b69dcc572d |
|
MD5 | 393fc392043e562ec7fd894698499ef6 |
|
BLAKE2b-256 | 54a43b2bcf9f225a8d6429b3e246a63b2e764a77a5b9c071b566812a0b6c2a3a |