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
Release files for bored 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bored-1.0.1.tar.gz | 2.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bored-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.3 kB
Release files / bored-1.0.1.tar.gz
| Download URL | bored-1.0.1.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6908b0d9cdc7f6a8698b5ebbf77777bfc31d9b392d236ddb731930a2ca5a1bc9
|
|
BLAKE2b-256 checksum How to use checksums |
d41fb417b97db0343204a7a823a967f79903058a3cbc367b43330ee5b9d800e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / bored-1.0.1-py3-none-any.whl
| Download URL | bored-1.0.1-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee200fb597bfb738f817fadc71ff4bebeb5d240537d66a886f61fd5f47647353
|
|
BLAKE2b-256 checksum How to use checksums |
789c2be31e4397b908610e5fd2196bca6bc47c836db5d65ad6c0f92f80bfefc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|