Skip to main content

PyBlue

Project description

A simple static site generator.

Why another one? There are many static site generators already. I found most to be way too complicated, too many conventions and rules: put this here or there, call it this or that. It was too tiring to keep up.

PyBlue is different. Everything is optional, nothing is required, use only what you need. It basically stays out of the way.

Simple things are very easy:

  • No configuration required.

  • Works with any existing site.

  • Easy to include markdown.

  • Easy linking to other pages.

  • Tiny codebase, pyblue is around 500 lines in a single file!

Complicated tasks are easy:

  • PyBlue generates the correct links even if you move pages around.

  • Use Django Templates and all the features that it offers.

  • Easily add data into each page (title, link name, or any arbitrary content).

And you can go all the way out if you really want to:

  • Load python modules into each page.

  • Exposed data: database queries, results of online requests etc.

  • Run python code, access and modify data from inside of each page.

  • Extend the Django templates. Add your own templatetags.

Documentation

You can also browse the help in source format for examples.

Install

pip install pyblue --upgrade

Or download it from the PyBlue at PyPI.

Usage

Launch pyblue to serve a directory

pyblue -r docs

View your site by visiting http:://localhost:8080

Edit your pages and make changes. Reload the page to see your edits live. Generate static output with:

pyblue -r docs -o html

That’s all. Told you it was simple. To see extra help on options run:

pyblue -h

Licensing

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

pyblue-2016.08.04.tar.gz (3.9 MB view details)

Uploaded Source

File details

Details for the file pyblue-2016.08.04.tar.gz.

File metadata

  • Download URL: pyblue-2016.08.04.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyblue-2016.08.04.tar.gz
Algorithm Hash digest
SHA256 4bd311ffa02252d457d46707f51e4ad543d388e43b3d6e3f9d24e0add2c7efcf
MD5 749a6953497d3b3cc261c924ee568124
BLAKE2b-256 032ccf22382d6696c6d74bdada3714f7b15ad0b024c33fdb84bfdc12208c65e8

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