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.3.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file imgbbpy-0.1.3.tar.gz
.
File metadata
- Download URL: imgbbpy-0.1.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 003bbf9b6a73f6bdf5c94c40c119da44a2e387d7d4583cf0732077368f460513 |
|
MD5 | 3e77857bc9ef55e5a0707550d0c49df7 |
|
BLAKE2b-256 | d6e56abe3a9078d8dcd33629554ccdf69ed811019fd9b103481c20061ddc0af9 |
File details
Details for the file imgbbpy-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: imgbbpy-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15ff80c18408993c72a7303dc1cbddf0278f41eb42273c352950df2af8c7d6ec |
|
MD5 | 3df007a446872f1f6705fa00ed513c56 |
|
BLAKE2b-256 | 64dde6d7c17015d1655893bb70a34b5f19d6aff07873fed40532202440b06659 |