Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bored, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size bored-1.0.1-py3-none-any.whl (2.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size bored-1.0.1.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page