Skip to main content

A simple private blogging system

Project description

gresiblos

License: GPL PyPI version test Downloads Downloads Coverage Status Documentation Status Dependecies

Donate

Introduction

gresiblos is the acronym for greyrat's simple blog system. It is a simple blogging system written in Python that generates static HTML pages from blog content definitions.

In the current stage (v0.4.2), gresiblos reads a file with blog entry contents and meta information and embeds it into a template. It generates a json-file with meta information about the entries for generating lists of topics, entries, or entries with a named topic. gresiblos comes with a php-file that realises browsing entries and topics, and a php-file that generates rss and atom feeds.

Background

I wanted to have a blog and I wanted it to use static pages. That's why I wrote it. There are some features — like the inclusion of custon JavaScript and CSS files — I needed for my own blog.

Usage

Write your blog entries as HTML contents/snippets (may be extended to .md etc. in the future) with some additional meta information, e.g. ‘entry1.txt’:

state:release
title:My first blog entry
filename:my-first-blog-entry
author:Daniel Krajzewicz
date:26.12.2024 19:25
topics:blog,example
abstract:A very first introduction into blogging
content:
<b>Hello there!</b><br/>
This is my very first blog post!
===

All information starts with a key that is separated from the value by a ‘:’. Multi-line values start with a blank line after the key and are closed with ‘===’. More information about the format of the entries is given on the 'Entry Definition' page.

Then run gresiblos on it:

python src\gresiblos.py entry1.txt

… and it will convert it into a complete HTML page using the default template stored in ./data/. The command line options and the usage is described on the 'Running on the Command Line' page.

License

gresiblos is licensed under the GPLv3 license.

Installing gresiblos

The current version is gresiblos-0.4.2.

You may install gresiblos using

python -m pip install gresiblos

You may download a copy or fork the code at gresiblos's github page.

Besides, you may download the current release here:

Further Documentation

Status

gresiblos works as intended for me, but lacks quite some features of enterprise systems.

I may extend it in the future, but that mainly depends on my motivation and your interaction with me.

ChangeLog

gresiblos-0.4.2 (29.12.2024)

  • fixing tests...

gresiblos-0.4.0 (29.12.2024)

  • support for entry index (using json and php)
    • generates a json-file with entries
    • added a php-file which lists entries or topics
    • added a php-file which generates an rss or an atom feed
  • updated the documentation
  • fixing packaging

gresiblos-0.2.0 (27.12.2024)

  • Initial version
    • processes entries and saves them

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

gresiblos-0.4.2.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gresiblos-0.4.2-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

Details for the file gresiblos-0.4.2.tar.gz.

File metadata

  • Download URL: gresiblos-0.4.2.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.4

File hashes

Hashes for gresiblos-0.4.2.tar.gz
Algorithm Hash digest
SHA256 6bfdca8a9f1fa98756f232b72cde821e1b91d6745b0deeb14d02401007b30799
MD5 8551dd3edde3c7a0ca8b1e697283d82f
BLAKE2b-256 80e207c09320576c7228615b0f255a06efb56d77cacc4cc9a54b28801267f2d6

See more details on using hashes here.

File details

Details for the file gresiblos-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: gresiblos-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 35.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.4

File hashes

Hashes for gresiblos-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d6a6229ddac53df01d4023c56bb22c690f09fccaa5b939904c4f3de4b2ead35e
MD5 5861e5df4941a63e8b89f1b2d9dbe692
BLAKE2b-256 d04644d35c774ab91eecba0d1dde57d07259c59a81416dbe6451facc1f4d5e71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page