No project description provided
Project description
Pelican Metadata Generator
Graphical application that creates Pelican (http://blog.getpelican.com/) post metadata. Written in Python 3.x and Qt 5.x (PyQt). Works on Linux, Windows and Mac.
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
- Python 3.x https://www.python.org/
- PyQt5 https://www.riverbankcomputing.com/software/pyqt/intro | https://pypi-hypernode.com/pypi/PyQt5
- slugify https://pypi-hypernode.com/pypi/PyQt5 | https://pypi-hypernode.com/pypi/python-slugify
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 python-slugify PyQt5 - Download this repository
To run application:
- Open command prompt (
cmd.exe
) - Run
activate pmg
- Run
<path_to_repository>/pelican-metadata-generator.py -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
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.
Source Distribution
Built Distribution
File details
Details for the file pelican-metadata-generator-0.1.0.tar.gz
.
File metadata
- Download URL: pelican-metadata-generator-0.1.0.tar.gz
- Upload date:
- Size: 23.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.7.0-3-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 190e52e02b13e7c9e19d2fb0ad011127ba0530d46e96be540be25e6271b04c46 |
|
MD5 | b0083a5bb2e65a882df0ee8a7c98c006 |
|
BLAKE2b-256 | 6adc65d9693c2cbafc78e6d4f93dc2e2256bbf73d8bdb1fefaefafafdcdbd30e |
File details
Details for the file pelican_metadata_generator-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pelican_metadata_generator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.7.0-3-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30495acbdee51647b67df054d96cf1d16437ae4a346164dd8a3a082ff34098ff |
|
MD5 | 4246967aaaeb028a23cd2eda2b02283a |
|
BLAKE2b-256 | 68f1b2dd65baa62c105559e5d3c1d0b2b5f8590009a2d7899ff71e5cdc6ff921 |