Skip to main content

No project description provided

Project description

Pelican Metadata Generator

Graphical application that creates Pelican post metadata. Written in Python 3.x and Qt 5.x (PyQt). Works on Linux, Windows and Mac.

Sample screenshot

Rationale

Pelican is static website generator that does not provide any way of accessing existing content at new page creation. Simple typo in category name or tag name will create spurious entity that you might not catch in time and push to live site.

This application tries to prevent these mistakes from happening by exposing existing Pelican data in graphical user interface. Re-using previous name is as easy as picking it up from GUI. Creation of new categories or tags must be opted-in.

Added value is that slug will be generated automatically from post title and will serve as post file name, if you decide to save data on disk.

Dependencies

Installation

This application is now published on PyPI. You can install it using pip:

pip install pelican-metadata-generator

I recommend using pipx for automatic management of isolated virtual environments:

pipx install pelican-metadata-generator

Installation (Windows)

  • Download and install Python 3 Miniconda from https://conda.io/miniconda.html
  • Open command prompt (cmd.exe) and run following commands: conda create -n pmg python=3 activate pmg pip install pelican-metadata-generator

To run application:

  • Open command prompt (cmd.exe)
  • Run activate pmg
  • Run pelican-metadata-generator -d <path_to_pelican_content_dir>

Adding to menu (Linux only)

Copy pelican-metadata-generator.desktop file into $HOME/.local/share/applications/. If you haven't put executable somewhere in $PATH, modify Exec= line to include absolute path. You probably also want to specify location of your Pelican content.

If you want your menu entry to have an icon, first you must obtain it. There don't seem to be any "official" icon in Pelican sources. Personally, I have used image from @getpelican Twitter account. Then, modify Icon= line to provide absolute path to icon on your disk.

You might need to refresh menu database for your desktop environment to pick up changes. KDE SC 4 users may use kbuildsycoca4.

Copying

Distributed under GNU AGPLv3, the same as Pelican. See LICENSE file.

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

pelican_metadata_generator-0.2.0.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

pelican_metadata_generator-0.2.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file pelican_metadata_generator-0.2.0.tar.gz.

File metadata

  • Download URL: pelican_metadata_generator-0.2.0.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.8 Linux/6.6.15-amd64

File hashes

Hashes for pelican_metadata_generator-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a87cc6a54e1ca07459b45eef8dfc28f893228b7d63ee4f09371f3bc100286a74
MD5 0805bc157dc219e56e6513501d07a03b
BLAKE2b-256 8e0692025504bffe619dc29aa36c1a26a15fc29bc57cdbe20ed00c13f26e6c9a

See more details on using hashes here.

File details

Details for the file pelican_metadata_generator-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pelican_metadata_generator-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ed394e20018990aa15c17cb68c7c41fd122a8ba1533ad0ce5918a573306c4b2
MD5 3fbb07cb9deb889a69c7c4fdfc7366ef
BLAKE2b-256 7bcea6dc6aeb12c12c366a4096230eb28ee4619d815f523ada7f26cc65588e7b

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