flask-imagekitio-0.1.1
توضیحات
A simple interface to use ImageKiIO API with Flask.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | flask-imagekitio-0.1.1 |
| نام | flask-imagekitio |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sebastian Salinas |
| ایمیل نویسنده | seba.salinas.delrio@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/flask-imagekitio/ |
| مجوز | MIT |
# Flask-CKEditor-Manager
Flask-ImageKitIO provides a simple interface to use ImageKitIO API with Flask.
```{warning}
🚧 This package is under heavy development..
```
## Installation
Install the extension with pip:
```bash
pip install flask-imagekitio
```
Install with poetry:
```bash
poetry add flask-imagekitio
```
## Configuration
This are some of the settings available
| Config | Description | Type | Default |
| ----------------------- | ----------------------------------- | ---- | ------- |
| IMAGEKITIO_URL_ENDPOINT | The ImagekitIO account url endpoint | str | `None` |
| IMAGEKITIO_PRIVATE_KEY | The ImagekitIO Private Key | str | `None` |
| IMAGEKITIO_PUBLIC_KEY | The ImagekitIO Public Key | str | `None` |
## Usage
Once installed ImagekitIO is easy to use. Let's walk through setting up a basic application. Also please note that this is a very basic guide: we will be taking shortcuts here that you should never take in a real application.
To begin we'll set up a Flask app:
```python
from flask import Flask
from flask_imagekitio import ImagekitIO
app = Flask(__name__)
imagekitio = ImagekitIO()
imagekitio.init_app(app)
result = imagekit.upload_file(data, file.filename)
img_url = imagekit.url({
'src': result.url,
'transformation': [
{
'width': '600',
'aspect_ratio': '5-3'
}
]
})
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.2.2,<3.0.0 | Flask |
| >=3.0.1,<4.0.0 | imagekitio |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl flask-imagekitio-0.1.1:
pip install flask-imagekitio-0.1.1.whl
نصب پکیج tar.gz flask-imagekitio-0.1.1:
pip install flask-imagekitio-0.1.1.tar.gz