Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scrazzz/imgbbpy
An Asynchronous and Synchronous API Wrapper for the Imgbb API.
https://github.com/scrazzz/imgbbpy
api asynchronous imgbb imgbb-api python python3 synchronous
Last synced: 3 months ago
JSON representation
An Asynchronous and Synchronous API Wrapper for the Imgbb API.
- Host: GitHub
- URL: https://github.com/scrazzz/imgbbpy
- Owner: scrazzz
- License: mit
- Created: 2022-01-24T11:16:38.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-24T11:16:51.000Z (almost 3 years ago)
- Last Synced: 2024-07-27T13:46:40.782Z (4 months ago)
- Topics: api, asynchronous, imgbb, imgbb-api, python, python3, synchronous
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 14
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imgbbpy
An Asynchronous and Synchronous API Wrapper for the Imgbb API.## Installation
Install imgbbpy via `pip`.```sh
pip install imgbbpy
```
imgbbpy requires Python 3.7+## Quickstart
Asynchronous usage:
```py
import asyncio
from imgbbpy.aio import Clientasync 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:
```py
from imgbbpy import Clientclient = 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.