GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing pycnic.nullism.com — Pycnic Framework

Fork me on GitHub

Pycnic

A JSON API web framework for lazy people.

Docs
# example.py
from pycnic.core import WSGI, Handler

class Hello(Handler):
    def get(self, name="World"):
        return { "message":"Hello, %s!"%(name) }

class app(WSGI):
    routes = [
        ('/', Hello()),
        ('/([\w]+)', Hello())
    ]
Run it with a WSGI server, like Gunicorn.
gunicorn example:app

Benchmarks

Because Pycnic is small, standalone, and optimized for JSON API servers, it's no surprise that it holds up so well against other popular frameworks.

See the code

PyPI version MIT License

© 2015 Nullism - Licensed under MIT

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.