Skip to content

An Asynchronous and Synchronous API Wrapper for the Imgbb API.

License

Notifications You must be signed in to change notification settings

scrazzz/imgbbpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
from imgbbpy.aio import Client

async def main():
    client = Client('API KEY')
    image = await client.upload(file='path/to/image.jpeg')
    print(image.url)

    await client.close()

asyncio.get_event_loop().run_until_complete(main())

Synchronous usage:

from imgbbpy import Client

client = Client('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.

About

An Asynchronous and Synchronous API Wrapper for the Imgbb API.

Topics

Resources

License

Stars

Watchers

Forks

Languages