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.5, PyPy
- DBMS: PostgreSQL, MySQL, SQLite
- SQLAlchemy: 0.8 or higher
Links
- Docs
https://sqlalchemy-imageattach.readthedocs.io/
- Package Index (Cheeseshop)
https://pypi.python.org/pypi/SQLAlchemy-ImageAttach
- GitHub
- https://github.com/dahlia/sqlalchemy-imageattach
- Continuous Integration (Travis CI)
http://travis-ci.org/dahlia/sqlalchemy-imageattach
- Code Coverage
https://coveralls.io/r/dahlia/sqlalchemy-imageattach
- Author Website
- https://hongminhee.org/
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size SQLAlchemy_ImageAttach-1.0.0-py2.py3-none-any.whl (31.5 kB) | File type Wheel | Python version 3.5 | Upload date | Hashes View |
Filename, size SQLAlchemy-ImageAttach-1.0.0.tar.gz (26.0 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for SQLAlchemy_ImageAttach-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a28af1b384fd841131f778a172eee64a8ad9099c9b50483f29e40818b70a2949 |
|
MD5 | 7202c55d9ed90e9ffa4c7423fea6960a |
|
BLAKE2-256 | b6a407d04c5d54f27c54dfedf16f2504e623a6645117edb10430207e40afa0f0 |
Close
Hashes for SQLAlchemy-ImageAttach-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e4058992ed1e8050ab8baa87a871ae1a1b36b52800b10e0db75feb75b5146a3 |
|
MD5 | 37aeb8871d5369b5e134e15e4d9f324a |
|
BLAKE2-256 | becd36b612ebf6a58209512a2aeed638922b8a53fb45e87501ae00082211fdf5 |