• Strophe
  • Punjab
  • Palaver
  • Speeqe
  • Stanziq
Punjab Logo
  • Login
  • Preferences
  • Help/Guide
  • Register
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search

Context Navigation

  • Start Page
  • Index
  • History
  • Last Change

  1. Punjab Documentation
    1. Installation
      1. Installing and Running Punjab
    2. Examples
    3. Development

Punjab Documentation

Installation

Punjab has the following dependencies :

- Python

- Twisted - The latest version can be downloaded from  http://twistedmatrix.com/

- pyopenssl - If you want ssl and tls to work.

Also see the following :

 http://code.stanziq.com/cgit/punjab/punjab/tree/INSTALL.txt

Installing and Running Punjab

  • Untar the current punjab-X.X.tar.gz file in a directory you would like punjab to reside.
    shell>tar vxzf punjab-X.X.tar.gz
    
  • Run setup to install
    shell>python setup.py install
    
  • Configure punjab - using a tac file.
    shell>edit punjab.tac
    # punjab tac file
    from twisted.web import server, resource, static
    from twisted.application import service, internet
    
    from punjab.httpb  import Httpb, HttpbService
    
    root = static.File("./html") # a static html directory
    
    b = resource.IResource(HttpbService(1)) # 1 means turn on verbose mode.
    root.putChild('bosh', b) # url for BOSH
    
    site  = server.Site(root)
    
    application = service.Application("punjab")
    internet.TCPServer(5280, site).setServiceParent(application)
    
  • Run punjab
    shell>twistd -y punjab.tac
    

Examples

PunjabNginxStrophe

PunjabStrophe

PunjabSpeeqe?

Development

Download in other formats:

  • Plain Text

Trac Powered

Powered by Trac 0.11.5
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/