pyssgen
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.htmlis common part between all pages.home.htmlis the name used for the main page template.post.htmlis the name used for posts template.
css
Simply replace the existing css file in dist/static/styles.css with your own.
Metadata
Release files for pyssgen 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyssgen-1.0.1.tar.gz | 3.9 kB | Without provenance | Details for pyssgen-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyssgen-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for pyssgen-1.0.1-py3-none-any.whl |
Total release size: 8.0 kB
Release files / pyssgen-1.0.1.tar.gz
| Download URL | pyssgen-1.0.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d766bb1b8876882863cded78cffae1895617557341bde9baceb65bcf3f860c36
|
|
BLAKE2b-256 checksum How to use checksums |
649086101a8ed7cb0d3f40f0dd94d96c6fc9933919b236dc2635952f794f615b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / pyssgen-1.0.1-py3-none-any.whl
| Download URL | pyssgen-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67e15a6b39092502a37c927a72a680933d188694fb21ee829809e965ee0e0c37
|
|
BLAKE2b-256 checksum How to use checksums |
9767a460fb20b151c0684c7a72bc0167cfa4f4437da930b45fef12892f0be25e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Security for pyssgen 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.