SQLAlchemy extension for attaching images to entity objects
Project description
SQLAlchemy-ImageAttach is a SQLAlchemy extension for attaching images to entity objects. It provides the following features:
- Storage backend interface
You can use file system backend on your local development box, and switch it to AWS S3 when it’s deployed to the production box. Or you can add a new backend implementation by yourself.
- Maintaining multiple image sizes
Any size of thumbnails can be generated from the original size without assuming the fixed set of sizes. You can generate a thumbnail of a particular size if it doesn’t exist yet when the size is requested. Use RRS (Reduced Redundancy Storage) for reproducible thumbnails on S3.
- Every image has its URL
Attached images can be exposed as a URL.
- SQLAlchemy transaction aware
Saved file are removed when the ongoing transaction has been rolled back.
- Tested on various environments
Python versions: Python 2.6, 2.7, 3.2, 3.3, 3.4, PyPy
DBMS: PostgreSQL, MySQL, SQLite
SQLAlchemy: 0.8 or higher
Links
- Docs
- Package Index (Cheeseshop)
https://pypi-hypernode.com/pypi/SQLAlchemy-ImageAttach
- GitHub
- Continuous Integration (Travis CI)
http://travis-ci.org/dahlia/sqlalchemy-imageattach
- Code Coverage
https://coveralls.io/r/dahlia/sqlalchemy-imageattach
- Author Website
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
File details
Details for the file SQLAlchemy-ImageAttach-0.9.0.tar.gz
.
File metadata
- Download URL: SQLAlchemy-ImageAttach-0.9.0.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c31cdd52d1c4fe2f20124bbccd1cd4f4a65948029d7b9d0117a0c8fb96201c5 |
|
MD5 | af5734421ca40b8782ece37149fb63fe |
|
BLAKE2b-256 | d27683aa57d812e9fc7659ed187e26c003be5cae7be0f238853ac32ca29e51ec |