A very flexible static site generator written in python
Project description
Kart
A very flexible static site generator written in python
Getting started
Install Kart with pip
pip install Kart
Create a new file named main.py in your top directory with this code
from kart import Kart
kart = Kart()
kart.run()
In this configuration Kart will only build a basic blog with a paginated blog index and paginated tags. If you want to customize the urls of the blog you will have to modify main.py with custom python code
For the folder structure you can look at the test_blog example
You can then build and serve your site executing this script
python3 main.py serve
Disclaimer
Kart is not yet ready to use in a real-world scenario because it is in its early stage of its life and its api can change abruptly each minor verision.
If you want an example of a simple site you can look at the test_* folders
A complete explanation of the architecture and a step-by-step tutorial will be written soon
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Kart-0.2.0.tar.gz.
File metadata
- Download URL: Kart-0.2.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0732921e4b892b890594825c1c0a397e65e493609ec33e7cd11363a86427b6f9
|
|
| MD5 |
834c93b77c8e63dc88f1b5e9d8d7d190
|
|
| BLAKE2b-256 |
51adaf9d2709d8bcb0739c746e37204eeb49f7911188ca84b78e547c2421e4f4
|
File details
Details for the file Kart-0.2.0-py3-none-any.whl.
File metadata
- Download URL: Kart-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cad67d0c54c41f9ef2bf89a774e21b26ef085a1513dfdd15e0c4731d926667e2
|
|
| MD5 |
b04308a36abd3ec55dc64b940bcea7f8
|
|
| BLAKE2b-256 |
2c9839ec1c6ac88bcb69a47cdb3c5ee03aa0609d295a2cc4e1ab037561b2c675
|