Skip to main content

Simple gallery generator.

Project description

GalGen

Simple gallery generator.

Features

  • Simple
  • Reliable
  • Customizable

Demo

Sample gallery can be found here.

Installing

pip install galgen

Getting Started

Let's say we have the following file structure:

holidays/
  day1/
    pic1.jpg
    pic2.jpg
    pic3.jpg
    thumnails/
      pic1.jpg
      pic2.jpg
      pic3.jpg
  day2/
    pic1.jpg
    pic2.jpg
    pic3.jpg
    thumnails/
      pic1.jpg
      pic2.jpg
      pic3.jpg

To generate and open your gallery invoke the following:

$ galgen init path/to/holidays
$ galgen build --open path/to/holidays
  • One or more directories with the pictures are required.
  • Define content of your gallery in gengal-config.yml
  • Customize layout in index.html.j2

Rebuild your gallery whenever pictures are added/removed or other changes applied.

$ galgen build --force path/to/holidays

Thumnails

  • Thumnails are optional. Skip them (for simplicity) or generate manually (for performance).
  • Size of the thumnails is of your choice.
  • Filenames of the thumnails must correspond to the filenames of the full-scale pictures.

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

galgen-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

galgen-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file galgen-0.1.0.tar.gz.

File metadata

  • Download URL: galgen-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-73-generic

File hashes

Hashes for galgen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1b8902e9a28996fdd3a3fb3ccaf89a2ca4d5b385b74b4edd45c2d8a359f40226
MD5 ff5e19e10b53443bbd7a3a7b171b3de6
BLAKE2b-256 f3c823d32049392bd3b9d628780a808479fda03c0155fd45cc9b8721ade3d7c8

See more details on using hashes here.

File details

Details for the file galgen-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: galgen-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-73-generic

File hashes

Hashes for galgen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96886b8df80893ba943277fd7433dfc9025567e843fe7fe5fe76204664517375
MD5 872cae53fe99844cb9d89804c989ab3c
BLAKE2b-256 4850b0dd76324f94c2865be415eeff4904b9b73bc1f589b778dc8c34528bd41e

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