Skip to content

edelooff/newWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Handle with care

This fork of µWeb is very much a work in progress to fix some of the bad design decisions made during its development. For a full description of the rough edges of it, refer to the two relevant blog posts:

Work so far

  • Cut tons of code for the standalone module
  • Started work on making newWeb a WSGI application framework
  • Cut all but one of the packages from ext_lib

Example projects

The following example applications for newWeb exist:

  • newWeb-info: This demonstrates most µWeb/newWeb features, and gives you examples on how to use most of them.
  • newWeb-logviewer: This allows you to view and search in the logs generated by µWeb applications.

newWeb installation

The easiest and quickest way to install newWeb is using Python's virtualenv. Install using the setuptools installation script, which will automatically gather dependencies.

# Set up the Python virtualenv
virtualenv env
source env/bin/activate

# Install newWeb
python setup.py install

# Or you can install in development mode which allows easy modification of the source:
python setup.py develop

Installation requirements

newWeb depends on mysql-python. To build the database connector from source you will need development headers for your version of Python and MySQL client. For Debian and Debian-derived flavors Linux these can be installed using apt:

sudo apt-get install python-dev libmysqlclient-dev

Alternatively, you can choose to install a precompiled database driver. For Debian and Debian-derived flavors of Linux this is available as python-mysqldb.