A wrapper for the Discord Python Pixels API
A simple wrapper around Python Discord Pixels. Requires Python 3.7+ (3.x where x >= 7). Requires pillow and aiohttp from pip. Example import dpypx # Create a client with your token. client = dpypx.Client(‘my-auth-token’) # You can also set a save file to store ratelimit data between reboots. client = dpypx.Client(‘my-auth-token’, ratelimit_save_file=’ratelimits.json’) # Download and save the canvas. canvas = await client.get_canvas() canvas.save(‘canvas.png’) # And access pixels from it. print(canvas[4, 10]) # Or just fetch specific pixels. print(await client.get_pixel(4, 10)) […]
Read more