Skip to main content

Static site generator

Project description

wt - static site generator

Logo

Current Version PyPI - License Python versions

What

Yet another static site generator with following features:

Under the hood this project uses following python libraries:

Why

It was curiosity - "how would I do it?" and good intentions - "let's create something easy to work with".

Documentation

wt documentation is not available online yet but you can check docs/pages/ folder for it.

How

Requirements

Hard dependency is Python>=3.12.

Installation

Install from PyPI with pip:

$ pip install wt

Or pipx:

$ pipx install wt

Or uv:

$ uv tool install wt

Bootstrapping

To initialize new project with some example content use wt init command:

$ wt init .

Configuration

Your site must have configuration file written in toml. By default wt will look for the file named wt.toml in current dir.

To dump default configuration example to console use wt config command:

$ wt config

Usage

To start development server use wt develop command:

$ wt develop

Bt default the server will be listening at 127.0.0.1:9000.

To use multiple configuration files and custom port:

$ wt develop -c wt.toml -c wt-extra.toml --port 3000

When content is ready you will need to build it using wt build command:

$ wt build

By default generated site will be placed to output/ folder (can be changed in configuration file).

To see command-line help use wt help command:

$ wt help

Roadmap

  • documentation
  • support for pagination
  • support for multiple configuration files
  • support for tags

License

MIT

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

wt-3.0.2.tar.gz (175.3 kB view details)

Uploaded Source

Built Distribution

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

wt-3.0.2-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file wt-3.0.2.tar.gz.

File metadata

  • Download URL: wt-3.0.2.tar.gz
  • Upload date:
  • Size: 175.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wt-3.0.2.tar.gz
Algorithm Hash digest
SHA256 f2520d4e5be74fdfad7aae7859ee955f81649111cd2cfbac76d91eb5dd6ec4de
MD5 f91e66ac3571ec7d753f03521da7f4b6
BLAKE2b-256 1809f1f7e66c40594c3d2a3d74b47ac6220d7beb70d4f54e637d3f35d2833e87

See more details on using hashes here.

File details

Details for the file wt-3.0.2-py3-none-any.whl.

File metadata

  • Download URL: wt-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 34.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wt-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0818d9fa8fc1fffac6cc8a70ab7aa8bbca7b445b8d6cd305f047330602e76ab6
MD5 1b358eddb684ced9fe2f771dc8c95f33
BLAKE2b-256 1d6b45dbb453a1abf1554bc5f111fa2183ecd94b525815124bf278d07fd449c0

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