• Stars
    star
    118
  • Rank 299,923 (Top 6 %)
  • Language
    Python
  • License
    Other
  • Created over 11 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

Complexity

https://badge.fury.io/py/complexity.png https://travis-ci.org/audreyr/complexity.png?branch=master https://pypip.in/d/complexity/badge.png

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

Documentation

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

Quickstart

Try it out:

$ pip install complexity
$ git clone [email protected]:audreyr/complexity-example.git my_proj
$ cd my_proj
$ complexity project/ www/

Once you've done that, open a web browser to http://127.0.0.1:9090 to see the newly generated Complexity static site.

Features

  • Works on Python 2.6, 2.7, and 3.3, and on PyPy.
  • Takes simple HTML templates as input.
  • Data from .json files turns into template context data.
  • Template inheritance, filters, etc. (Brought to you by Jinja2.)
  • Auto-expands .html file URLs into cleaner URLs (e.g. about.html gets expanded to /about/)
  • Minifies .html files
  • Can optionally be used as a library instead of from the command line. See Using Complexity as a Library for details.

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.

Community

  • Stuck? Don't know where to begin? File an issue and we'll help you.
  • We love contributions. Read about how to contribute.

More Repositories

1

favicon-cheat-sheet

Obsessive cheat sheet to favicon sizes/types. Please contribute! (Note: this may be in flux as I learn new things about favicon best practices.)
9,875
star
2

cookiecutter-pypackage

Cookiecutter template for a Python package.
Python
4,244
star
3

binaryornot

Ultra-lightweight pure Python package to check if a file is binary or text.
Python
124
star
4

sphinx-gui

Desktop GUI for editing Sphinx docs. Pre-alpha.
Python
121
star
5

how-to

A set of quick 1-page how-to guides. These are really just notes that I write for myself, to aid my own memory and learning.
60
star
6

alotofeffort

Instantly deploy static HTML sites to S3 at the command line.
Python
55
star
7

messagebar

MessageBar: A top bar for notification messages. Dismiss it by clicking the x. Works with Django, but that's optional.
JavaScript
52
star
8

django-columns

Django template filter for splitting a list into columns.
Python
30
star
9

tweepy-utils

A set of Python utility scripts for Twitter account management, using Tweepy.
25
star
10

standardjson

JSON encoder that aims to be fully compliant with the ECMA-262 and ECMA-404 specifications
Python
18
star
11

ponystrap

Simple HTML/CSS/JS components for adding Django ponies to your websites.
CSS
17
star
12

django-handstand-audreyr

DEPRECATED - use https://github.com/pydanny/cookiecutter-django and its forks instead.
Python
16
star
13

pycon-philippines

Quick website for PyCon Philippines 2012. Pull requests are encouraged, on both content and design.
12
star
14

jinja2_pluralize

Jinja2 pluralize filters.
Python
10
star
15

django-startcbv

Management command to start an app with class-based views. You use "python manage.py startcbv <appname>". It's very fresh and unstable, so use at your own risk, but it does work!
Python
10
star
16

cookiecutter-chrome-extension

Cookiecutter template for creating a minimal Google Chrome extension.
JavaScript
9
star
17

docker-cookiecutter

Cookiecutter in a Docker container. Work in progress.
9
star
18

cookiecutter-jquery

Cookiecutter template for a jQuery plugin. Based on https://github.com/jquery-boilerplate/jquery-boilerplate
JavaScript
9
star
19

meteor-urlify

Django's URLify.js file, repackaged for Meteor.
JavaScript
8
star
20

design

Generates various common web design elements. Borders, patterns, textures, gradients, etc.
Python
7
star
21

docker-bamboo-agent

Docker image for a remote agent that connects to Atlassian Bamboo Server.
Shell
7
star
22

rotatingnav

A JS/CSS rotating navigation menu.
JavaScript
6
star
23

cookiecutter-complexity

Cookiecutter template for a Complexity site. See https://github.com/audreyr/cookiecutter and https://github.com/audreyr/complexity.
CSS
6
star
24

docker-bamboo-server

Docker image for Atlassian Bamboo Server.
5
star
25

mathtoy

An Android game made with PhoneGap and XUI.
JavaScript
4
star
26

choosealicense

Choose a License is a Cookiecutter plugin for selecting an open-source license.
Python
4
star
27

pinecone

Pinecone is a Processing-inspired drawing library powered by Pillow.
Jupyter Notebook
4
star
28

auditionrocket_mockups

Some early Inkscape UI mockups for the Audition Rocket website. I'm putting these here as a demo of how you can use Inkscape to make UI mockups for web apps.
4
star
29

cookiecutter-jswidget

Cookiecutter for a generic JS front-end widget. Imagine a jQuery plugin without the jQuery dependency.
JavaScript
4
star
30

fuzzyrainbowcom

The files that make up the website fuzzyrainbow.com
4
star
31

meteor-cms

A Meteor-based CMS. Still very much a work in progress.
JavaScript
3
star
32

dwts-analysis

Analysis of Dancing With the Stars twitter data. This explains why Charlie & Sharna were eliminated in the semifinals.
Python
3
star
33

complexity-example

An example of a Complexity site. Use this with the Complexity static site generator.
CSS
3
star
34

djadmin2-theme-naturale

A theme for django-admin2.
Python
3
star
35

pinaxmascot

The Pinax gnome that rides the Django pony and carries a quiver of reusable Django applications.
3
star
36

rainbowbrowser

Nothing to see here, go away ;)
Python
2
star
37

new-library-sprint

2
star
38

useful

Random useful little scripts.
Python
2
star
39

one-click-hugo-cms

CSS
2
star
40

practice-repo

Fork this and submit a pull request for practice.
2
star
41

lapyladies

Website for the LA PyLadies chapter
Python
2
star
42

Cutebox

A Google Wave gadget that lets you draw, drag, and resize windowlike boxes collaboratively with your Wave friends.
2
star
43

hackerpoint

Python
1
star
44

how-to-immigrate

Our project for LA MigraHack.
1
star
45

pyladies-workshop

Materials for the PyLadies' Intro to Python workshop
1
star
46

vis-experiments

JavaScript
1
star
47

cookiecutter-github

An experimental Cookiecutter that: 1. Generates a bare-bones GitHub project. 2. Sticks the project into a GitHub repo.
Python
1
star
48

try_git

1
star
49

uma-games

HTML
1
star
50

pydream

Python
1
star
51

test-images

Test images from various image processing libraries, conveniently accessible from GitHub Pages.
CSS
1
star
52

barcamp-django-sf-2014-art

Artwork for BarCamp Django SF 2014
1
star
53

audreymroy.com

My personal website, redone in 2013.
HTML
1
star
54

sketch-a-day

An (almost) daily visual experiment
Jupyter Notebook
1
star
55

pythonla

LA Python Website
Python
1
star
56

rstsplitter

Utility script that splits up a big ReStructuredText file into many RST files.
Python
1
star
57

local-movie-ratings

Rotten Tomatoes + scraped movies playing at the local cinema.
Python
1
star
58

wagtail-starter-kit

A cookiecutter complete with wagtail, django layout, vagrant, provisioning scrips, front end build system and more!
Python
1
star
59

wt

A random wxPython project.
Python
1
star
60

localtomatoes

LocalTomatoes displays the Rotten Tomatoes ratings for the movies at your local theater. Just an experiment, to let me play with docopt and michaeljoseph/cookiecutter-pypackage.
Python
1
star