No project description provided
Project description
Flask-ImageKitIO
Flask-ImageKitIO provides a simple interface to use ImageKitIO API with Flask.
🚧 This package is under heavy development..
Installation
Install the extension with pip:
pip install flask-imagekitio
Install with poetry:
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:
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'
}
]
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flask_imagekitio-0.1.3.tar.gz.
File metadata
- Download URL: flask_imagekitio-0.1.3.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ee30ff8a8ce809ac4f33ad4c03638e3eb102fd02cf394a67102b758f6b0b524
|
|
| MD5 |
066ad0d71553f850c4bd1e380bda2ebf
|
|
| BLAKE2b-256 |
4a77c75ff5442a27cce5e3cbd66a8f6069a1f76f2eec379351cbcf1da6a42e7e
|
File details
Details for the file flask_imagekitio-0.1.3-py3-none-any.whl.
File metadata
- Download URL: flask_imagekitio-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94a2278d8ff90a778158b96349de80fbe3bccdc6e45ac8a55ed8ed4102890316
|
|
| MD5 |
d3881b6322e0f61c27e59e348bb98751
|
|
| BLAKE2b-256 |
c964f80f4b6ee43901af35069974914ce2ea8e16c998e10f60d23cdc8d3847cd
|