simple-photo-gallery-bulkcreation
Plugin for the Simple Photo Gallery which provides a config based bulk creation of multiple galleries from multiple folders of photos.
Description
This plugin comes with a further command for the Simple Photo Gallery:
gallery-bulkcreation
Installation
pip install simple-photo-gallery-bulkcreation
Configuration file
The configuration file is in a simple ini format. At first there has to be a general DEFAULT section with some general settings. Then there is one section per gallery.
[DEFAULT]
gallery_root = example/gallery
title = My vacations
description = The best days of the year
title_photo = example/pictures/mexico2017/2017-11-01_15-20-23.jpg
title_photo_offset = 20
[Oman 2020]
description = Some days in the orient
image_source = example/pictures/oman2020
background_photo = 2020-02-02_18-40-33.jpg
[Greece 2019]
description = Island hoping in Greece
image_source = example/pictures/greece2019
background_photo = 2019-08-29_10-19-43.jpg
background_photo_offset = 40
Usage
After the creation of a config.ini, the creation is pretty easy via running following command:
gallery-bulkcreation config-example.ini
If everything works correctly you can preview the result, e.g. via running a simple Python server:
python3 -m http.server --directory GALLERY_ROOT/public
and then checking it in your browser under http://localhost:8000.
If you add photos to already existing galleries or add new galleries in the config.ini you can simple update the gallery by running the command again.
Example
Check out the example.
Release files for simple-photo-gallery-bulkcreation 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simple-photo-gallery-bulkcreation-0.2.0.tar.gz | 11.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simple_photo_gallery_bulkcreation-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 25.7 kB
Release files / simple-photo-gallery-bulkcreation-0.2.0.tar.gz
| Download URL | simple-photo-gallery-bulkcreation-0.2.0.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c03e0000478c028ba78ea0bf46948afd14a86ddf9379dfaacabad025948e14b
|
|
BLAKE2b-256 checksum How to use checksums |
7beddb29bacd509a2aa24f1fbdecd9c87fcc3a16d1c8da1677314987d3c9a273
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / simple_photo_gallery_bulkcreation-0.2.0-py2.py3-none-any.whl
| Download URL | simple_photo_gallery_bulkcreation-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d3112a1fc6ee3c0f877ab4c8ff3e0cb06e099b135d3bad66aa8a32d6788ae77c
|
|
BLAKE2b-256 checksum How to use checksums |
eddedc554eecdb0d0ec11d33de5a26660e3d67366a914866fc7fcb0c36e30c43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|