Skip to main content

SQLAlchemy-ImageAttach

PyPI Read the Docs Build Status Coverage Status

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.7, 3.3 or higher, PyPy

  • DBMS: PostgreSQL, MySQL, SQLite

  • SQLAlchemy: 0.9 or higher (tested on 0.9 to 1.1; see CI as well)

Installation

It’s available on PyPI:

$ pip install SQLAlchemy-ImageAttach

Metadata

Release files for SQLAlchemy-ImageAttach 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SQLAlchemy-ImageAttach 1.1.0
File Size Uploaded
SQLAlchemy-ImageAttach-1.1.0.tar.gz 29.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for SQLAlchemy-ImageAttach 1.1.0
File Interpreter ABI Platform
SQLAlchemy_ImageAttach-1.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 63.7 kB

Release files / SQLAlchemy-ImageAttach-1.1.0.tar.gz

Download URL SQLAlchemy-ImageAttach-1.1.0.tar.gz
Size 29.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a9e3d56da889119e2105b3fee660ec259bb3b51be28173efb1ba129a52710ec4
BLAKE2b-256 checksum
How to use checksums
be6b4bab17d924c851b47050e623d8e86042d71715836b5d5fe2f166aa5366d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / SQLAlchemy_ImageAttach-1.1.0-py2.py3-none-any.whl

Download URL SQLAlchemy_ImageAttach-1.1.0-py2.py3-none-any.whl
Size 34.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7a143a820767458ad07380a4e405126bba5cfe5b74478f317d4d58e44cdc1df4
BLAKE2b-256 checksum
How to use checksums
a4a6a105d59b2dff00748d53963f7b1995add9f299a14936cc687434ae577c76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

0.9.0

1 release file

0.8.2

2 release files

0.8.1

1 release file

0.8.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page