A simple Python SDK for some Chuck Norris jokes
Project description
icndb-sdk
Unofficial SDK for some Chuck Norris jokes.
Getting Started
python3 -m venv venv
source venv/bin/activate
pip install icndb-sdk
Examples
In [1]: from icndb_sdk import API
In [2]: chuck = API()
In [3]: chuck.get_jokes_random()
Out[3]:
{'type': 'success',
'value': [{'id': 203,
'joke': 'Chuck Norris can lead a horse to water AND make it drink.',
'categories': []}]}
In [4]: chuck.get_jokes_specific(id_number=503)
Out[4]:
{'type': 'success',
'value': {'id': 503,
'joke': 'Chuck Norris protocol design method has no status, requests or responses, only commands.',
'categories': ['nerdy']}}
In [5]: PARAMS = {"firstName": "Julio", "lastName": "PDX"}
In [6]: chuck.get_jokes_specific(params=PARAMS, id_number=503)
Out[6]:
{'type': 'success',
'value': {'id': 503,
'joke': 'Julio PDX protocol design method has no status, requests or responses, only commands.',
'categories': ['nerdy']}}
In [7]:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
icndb-sdk-0.0.1.tar.gz
(2.8 kB
view details)
File details
Details for the file icndb-sdk-0.0.1.tar.gz.
File metadata
- Download URL: icndb-sdk-0.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
928dc60555e6ef93be2d995de2c8f4b0166f31e7f638fdde489a9697ed511d41
|
|
| MD5 |
ff4c6c87502d512f866aced46763fd68
|
|
| BLAKE2b-256 |
1b480f978f9ee6f3887167f7078874d4f5dd706d2f43073f39935e9ac85c3588
|