An async wrapper made in Python for Dagpi.
Project description
unofficial DagpiWrapper
Async Wrapper for Dagpi
Usage with discord.py (till now)
super simple
Roast
from asyncdagreq import Client
import json
object = Client.Asyncdagreq('your token')
@bot.command()
async def roast(ctx):
roast = await object.roast()
x = roast.decode("utf-8")
j = json.loads(x)
await ctx.send(j['roast'])
USING IMAGE METHODS
from asyncdagreq import Client
import json
object = Client.Asyncdagreq('your token')
@bot.command()
async def captcha(ctx):
url = str(ctx.message.author.avatar_url_as(format="png", static_format="png", size=1024))
img = await object.captcha(str(url), "hello")
file = discord.File(img, "pixel.png")
await ctx.send(file=file)
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
asyncdagreq-1.2.0.tar.gz
(5.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file asyncdagreq-1.2.0.tar.gz.
File metadata
- Download URL: asyncdagreq-1.2.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e84bb9a340fb85dedbb0ce3eedb6bebd59d362fd7217b0f8ee7d702ebf637c7
|
|
| MD5 |
7bd51ebf9d1a38f01c350fad38f84cca
|
|
| BLAKE2b-256 |
a6a9c93be191595f5971ba187e587830b125e5087fc81ba41b1b66118fc73182
|
File details
Details for the file asyncdagreq-1.2.0-py3-none-any.whl.
File metadata
- Download URL: asyncdagreq-1.2.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8991e38564982581419bc4eb9a4b12365ac221316e2ecdb7b6a9de2b5e81fadb
|
|
| MD5 |
bb5a1d93f7e0a15bc47527f3b28f22ad
|
|
| BLAKE2b-256 |
4add0277d455df511f459f9105b7ffb0280a98c9b9b205512098631a98c11a3e
|