Skip to main content

Weeb.sh API Wrapper, customised for use in discord.py

Project description

img img2 FOSSA Status

Pluggable Weeb.sh API Wrapper

Documentation

All available documentation can be found here: weebapi.readthedocs.io

How to install:

1. With pip

pip install -U weebapi

2. From GitHub

pip install -U git+https://github.com/AndyTempel/weebapi#egg=weebapi

Usage:

With bot integration:

from discord.ext.commands import Bot
from weebapi import Client

bot = Bot(command_prefix="+")
Client.pluggable(bot=bot, api_key="VeryNiceKey123")

@bot.command()
async def owo(ctx):
    image = await bot.weebsh.get_random(image_type="owo")
    await ctx.send(str(image))

>>> https://cdn.weeb.sh/images/SklMOkytDb.jpeg

or without bot integration:

from discord.ext.commands import Bot
from weebapi import Client

bot = Bot(command_prefix="+")
weeb = Client(api_key="VeryNiceKey123")

@bot.command()
async def owo(ctx):
    image = await weeb.get_random(image_type="owo")
    await ctx.send(str(image))

>>> https://cdn.weeb.sh/images/SklMOkytDb.jpeg

License

FOSSA Status

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

weebapi-0.1.14b0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distributions

weebapi-0.1.14b0-py3.7.egg (31.1 kB view details)

Uploaded Source

weebapi-0.1.14b0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file weebapi-0.1.14b0.tar.gz.

File metadata

  • Download URL: weebapi-0.1.14b0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.0

File hashes

Hashes for weebapi-0.1.14b0.tar.gz
Algorithm Hash digest
SHA256 0ce6c29dcf99b5cc2e9444a4a2a1f635c78b1d67d7309d0b08e39f3265dd247d
MD5 d9a5b70b478a5514aafa432b6ad66aab
BLAKE2b-256 78b37c31dbc1dc86a0b4d1722a83abf3441e06d91465b6cc90d2f8e48c667a7e

See more details on using hashes here.

File details

Details for the file weebapi-0.1.14b0-py3.7.egg.

File metadata

  • Download URL: weebapi-0.1.14b0-py3.7.egg
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.0

File hashes

Hashes for weebapi-0.1.14b0-py3.7.egg
Algorithm Hash digest
SHA256 6097c39e181214fdef78c5c2ead60aa713f5e5103708d9973e0b52dcb3b98672
MD5 3c885ac30bbb485d73b924dd93f608b9
BLAKE2b-256 c1864dbdc1c50fe970b5a0a84ed1a4352a5ba5056886693dd2ea5456d829bc94

See more details on using hashes here.

File details

Details for the file weebapi-0.1.14b0-py3-none-any.whl.

File metadata

  • Download URL: weebapi-0.1.14b0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.0

File hashes

Hashes for weebapi-0.1.14b0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3c9020033389f58b8d9424809ef7279b927e1011184b64e2480e5a57cd144e7
MD5 16491cdb7ee397cf76b5808ddf70f8f7
BLAKE2b-256 c2e47c2eb3528d18c20306746e6628aad97d9d9869b7d76e8878d181a7564d57

See more details on using hashes here.

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