Skip to main content

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.2.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

imgbbpy-0.1.2-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

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