Skip to content

dmig/pycnic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HUG

Docs

pycnic.nullism.com/docs

Example

# 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())
    ]

Installation

Now that Pycnic is available on PyPI, it may be installed with pip.

pip install pycnic

Running

Pycnic may be ran with any WSGI-compliant server, such as Gunicorn.

gunicorn file:app

Packages

No packages published

Languages

  • Python 96.5%
  • Shell 3.5%