Unofficial Wrapper for Bored API
Project description
Bored API Wrapper
Unoffical wrapper for https://www.boredapi.com/.
Usage
Activity Class
class Activity:
activity = "" #string
accessibility = 0.0 #float
type = "" #string
participants = 0 #int
price = 0.0 #float
link = "" #string
key = 0 #int
Get a random event
getRandomActivity()
returns Activity
Get Activity From Key
getActivityFromKey(key)
returns Activity
Get Activity From Type
getActivityFromKey(type)
returns Activity
Get Activity From Participants
getActivityFromKey(participants)
returns Activity
Get Activity From Price
getActivityFromKey(price)
returns Activity
Get Activity From Price Range
getActivityFromKey(min, max)
returns Activity
Get Activity From Accessibility
getActivityFromAccessibility(accessibility)
returns Activity
Get Activity From Accessibility Range
getActivityFromAccessibility(min, max)
returns Activity
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
bored-1.0.1.tar.gz
(2.0 kB
view details)
Built Distribution
bored-1.0.1-py3-none-any.whl
(2.3 kB
view details)
File details
Details for the file bored-1.0.1.tar.gz
.
File metadata
- Download URL: bored-1.0.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.11.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6908b0d9cdc7f6a8698b5ebbf77777bfc31d9b392d236ddb731930a2ca5a1bc9 |
|
MD5 | 1f0452279eec10adf442a66766ce4b4c |
|
BLAKE2b-256 | d41fb417b97db0343204a7a823a967f79903058a3cbc367b43330ee5b9d800e7 |
File details
Details for the file bored-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: bored-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.11.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee200fb597bfb738f817fadc71ff4bebeb5d240537d66a886f61fd5f47647353 |
|
MD5 | 94d747286907a5848e9a98d71b3160ed |
|
BLAKE2b-256 | 789c2be31e4397b908610e5fd2196bca6bc47c836db5d65ad6c0f92f80bfefc5 |