Image content type for Kotti2 (Python 3.12 + SQLAlchemy 2.0)
Project description
This is an extension to Kotti2 that allows you to add images to your site.
This package is only compatible with Kotti2 version 3.0.0 and later.
Setup
To enable the extension in your Kotti2 site:
pip install kotti2_image
Then activate the configurator in your INI file:
kotti.configurators =
kotti_image.kotti_configure
Configuration
The initial release doesn’t provide any configuration options. Custom configuration of image scales will be available in future releases.
Upgrading
If you are upgrading from a previous version you might have to migrate your database. The migration is performed with alembic and Kotti’s console script kotti-migrate. To migrate, run kotti-migrate <your.ini> upgrade --scripts=kotti_image:alembic (or kotti-migrate <your.ini> upgrade_all to run all Kotti and add on migrations).
For integration of alembic in your environment please refer to the alembic documentation.
Development
Contributions to kotti2_image are highly welcome.
History
3.0.0 - 2026-04-23
Package renamed to kotti2_image for PyPI
Major version upgrade: Python 3.12 + SQLAlchemy 2.0 support
Require Kotti2 >= 3.0.0
Full test coverage: 3/3 tests passing (100%)
2.0.0 - 2022-xx-xx
Drop support for Python 2.
Remove dependency from rfc_6266_parser and use depot.utils.make_content_disposition instead.
1.0.1 - 2018-03-16
Use rfc_6266_parser instead of unmaintained rfc_6266 package.
Fix tests for Kotti >= 2.0.0 / Python 3.x.
1.0.0 - 2018-01-17
No functional changes. Maintainance release for Kotti 1.x.
Integrate filedepot tween / filter test from Kotti < 2.0.0.
0.1.4 - 2016-10-09
Correctly declare dependencies.
0.1.3 - 2016-01-04
Include (empty) alembic/versions directory in distribution to avoid warnings.
0.1.2 - 2015-12-21
Use rfc6266 and unidecode for content disposition header.
0.1.1 - 2015-12-16
Fix broken packaging.
0.1.0 - 2015-12-16
This initial version is completely identical to what has been in Kotti core before Kotti 1.3.0-dev. Don’t even try to install with those versions!
Move all image related code from Kotti core into this package.
Create package with pcreate -s kotti kotti_image.
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 kotti2_image-3.0.0.tar.gz.
File metadata
- Download URL: kotti2_image-3.0.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee24b5b4f7790c7fd85b59ca9a827dd719072080057420629368f1a0b33a8565
|
|
| MD5 |
3cabf77dd7c125cc5ea33cdfc060a350
|
|
| BLAKE2b-256 |
90337a03371e0d9fd0f167c2b2a25ec86ac1f01032cedab51734b94a32bd9594
|
File details
Details for the file kotti2_image-3.0.0-py3-none-any.whl.
File metadata
- Download URL: kotti2_image-3.0.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2b116bd969b781fb74623c0314aab14c013281325b6c1ed9cb7baec5f046beb
|
|
| MD5 |
29b2fc277d1a8073912b566970cca88f
|
|
| BLAKE2b-256 |
28dca1095f37e9cce16b2765ff1266bea8885a7900600c89d0fc748fc0d74a0a
|