Skip to main content

A refreshingly simple static site generator, for those who like to work in HTML.

Project description

A refreshingly simple static site generator, for those who like to work in HTML.

Of course, @pydanny (https://twitter.com/pydanny) came up with the name for this.

Documentation

The full documentation is at http://complexity.rtfd.org.

Quickstart

Using Complexity is easy! Try it out:

$ pip install complexity
$ git clone git@github.com:audreyr/complexity-example.git my_project
$ cd my_project
$ complexity

Open a web browser to http://127.0.0.1:9090 to see your newly generated Complexity static site.

Features

  • Takes simple HTML templates as input.

  • Template inheritance, filters, etc. (Brought to you by Jinja2.)

  • Data from .json files turns into template context data.

Best Used With

Complexity is designed to be used with these packages:

  • Simplicity: Converts ReStructuredText into JSON, which Complexity can use as input.

  • A Lot of Effort: Deploys a static website (e.g. the output of Complexity) to Amazon S3.

  • Cookiecutter: Creates projects from project templates.

Sure, they could have all been built into Complexity, but decoupling them seemed like a nice thing to do.

Dependencies

  • Jinja2

History

0.3 (2013-07-18)

  • Graceful shutdown/restart of dev server.

  • Required input and output dir arguments.

  • Optional port argument.

  • Improved server start/stop messages.

  • Major internal refactor.

0.2.1 (2013-07-15)

  • Fixes to setup.py.

0.2.0 (2013-07-15)

  • Data from .json files now gets read as template context data.

  • Tested (and passing!) on Python 2.6, 2.7, 3.3, PyPy.

0.1.1 (2013-07-10)

  • First release on PyPI.

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

complexity-0.3.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file complexity-0.3.tar.gz.

File metadata

  • Download URL: complexity-0.3.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for complexity-0.3.tar.gz
Algorithm Hash digest
SHA256 a818f10a02711b0f6887ac04e6ecb1935675c0933d5e820f3165d0da547a3bbf
MD5 82989d9abc42d3a2a9d3adde8aae0e1a
BLAKE2b-256 137c87c62c8251467004d4a58bdeea8dc91fc4f5d70a1f6daa4812a510186fb1

See more details on using hashes here.

Provenance

Supported by

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