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, 3.4, 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.2.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SQLAlchemy_ImageAttach-0.8.2-py2.py3-none-any.whl (28.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for SQLAlchemy-ImageAttach-0.8.2.tar.gz
Algorithm Hash digest
SHA256 bc5015f720f8454d0507168f08808779f087d15f86fb2303f9bbd8044bd8b399
MD5 ce675a4723f407f96dc4905cc40f792c
BLAKE2b-256 18632e8fc3d05d9c9ab0fce7be31861f671c6ebc2fd482309f5f8f41bfe0efcf

See more details on using hashes here.

File details

Details for the file SQLAlchemy_ImageAttach-0.8.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for SQLAlchemy_ImageAttach-0.8.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4e99ad67173d734aac2e37d105f0dd70136d55164c4199c0684072ce3599128f
MD5 b993efc3dcf281b0052d589dbdcb48b8
BLAKE2b-256 44f4f5031bb38c7037f524ad28ba00cfe3f0a971d316f988bdfceed48568440d

See more details on using hashes here.

Supported by

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