An Asynchronous and Synchronous API Wrapper for the Imgbb API.
Project description
imgbbpy
An Asynchronous and Synchronous API Wrapper for the Imgbb API.
Installation
Install imgbbpy via pip
.
pip install imgbbpy
imgbbpy requires Python 3.7+
Quickstart
Asynchronous usage:
import asyncio
import imgbbpy
async def main():
client = imgbbpy.AsyncClient('API KEY')
image = await client.upload(file='path/to/image.jpeg')
print(image.url)
asyncio.run(main())
Synchronous usage:
import imgbbpy
client = imgbbpy.SyncClient('API KEY')
image = client.upload(file='path/to/image.png')
print(image.url)
You can get an API Key from https://api.imgbb.com.
Documentation
Documentation can be found in the documentation.md
file.
License
MIT, see LICENSE for more details.
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
imgbbpy-0.1.0.tar.gz
(4.4 kB
view hashes)