Skip to main content

Static site generator built with python

Project description

pyssgen

PyPI version

pyssgen is a lightweight alternative to hugo and other static site generators. I used it to build my static blog and included the templates and css that I use along with it.

Please note that it's only a side project and might not be suitable for bigger websites.

Installation

via pip

>>> pip install --user pyssgen

via git

git clone https://github.com/ken-soares/pyssgen.git
pip install -r requirements.txt
chmod +x pyssgen/pyssgen/pyssgen.py

Usage

if installed with pip

>>> python3 -m pyssgen <input-dir> <output-dir> (optional: <templates-dir>)

if installed with git

cd path/to/pyssgen
./pyssgen.py <input-dir> <output-dir> (optional: <templates-dir>)

Customisation

templates

You can create your own templates folder following theses naming conventions:

  • base.html is common part between all pages.
  • home.html is the name used for the main page template.
  • post.html is the name used for posts template.

css

Simply replace the existing css file in dist/static/styles.css with your own.

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

pyssgen-1.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pyssgen-1.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pyssgen-1.0.1.tar.gz.

File metadata

  • Download URL: pyssgen-1.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for pyssgen-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d766bb1b8876882863cded78cffae1895617557341bde9baceb65bcf3f860c36
MD5 0a614a5500b0bab371171730bb3c81b7
BLAKE2b-256 649086101a8ed7cb0d3f40f0dd94d96c6fc9933919b236dc2635952f794f615b

See more details on using hashes here.

File details

Details for the file pyssgen-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyssgen-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for pyssgen-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67e15a6b39092502a37c927a72a680933d188694fb21ee829809e965ee0e0c37
MD5 a45dad378e7e8b507a78cbcf5b7930ec
BLAKE2b-256 9767a460fb20b151c0684c7a72bc0167cfa4f4437da930b45fef12892f0be25e

See more details on using hashes here.

Supported by

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