Skip to content

xymz/sqlalchemy-imageattach

 
 

Repository files navigation

SQLAlchemy-ImageAttach

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
https://sqlalchemy-imageattach.readthedocs.org/
Package Index (Cheeseshop)

https://pypi.python.org/pypi/SQLAlchemy-ImageAttach

Latest PyPI version
GitHub
https://github.com/dahlia/sqlalchemy-imageattach
Continuous Integration (Travis CI)

http://travis-ci.org/dahlia/sqlalchemy-imageattach

Build Status
Code Coverage

https://coveralls.io/r/dahlia/sqlalchemy-imageattach

Coverage Status
Author Website
http://hongminhee.org/

About

SQLAlchemy extension for attaching images to entities.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 94.0%
  • Makefile 3.1%
  • Shell 2.9%