Skip to main content

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, PyPy

  • DBMS: PostgreSQL, MySQL, SQLite

  • SQLAlchemy: 0.8 or higher

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SQLAlchemy-ImageAttach-0.8.1.tar.gz (25.2 kB view details)

Uploaded Source

File details

Details for the file SQLAlchemy-ImageAttach-0.8.1.tar.gz.

File metadata

File hashes

Hashes for SQLAlchemy-ImageAttach-0.8.1.tar.gz
Algorithm Hash digest
SHA256 80b9a30879abb9924bbe36556bca8b830fc73a732603a012de68438ef4438230
MD5 2d43081b27e486ad66aec394167909e7
BLAKE2b-256 da71d333fe60db8ebb2c09e5d9654abd6ad52ee01d4e1f4dc278490814abfc00

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page