Skip to main content

The unofficial async API wrapper for http://www.boredapi.com/

Project description

async-bored-api

The unofficial async API wrapper for http://www.boredapi.com/

Installing

pip install --upgrade bored_api

Usage

Here is simple example of usage.

import asyncio

import bored_api

async def main():
  client = bored_api.BoredClient()
  activity = await client.get_by_type(bored_api.ActivityType.BUSYWORK)
  print(activity.activity)

asyncio.run(main())

Documentation and API Reference:

https://damego.gitbook.io/async-bored-api/

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

bored_api-1.1.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

bored_api-1.1.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page