Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install flask-zen

How to install Flask-Zen

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install flask-zen
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2 Available View build log
Windows (64-bit)
0.2 Available View build log
Mac OS X (10.5+)
0.2 Available View build log
Linux (32-bit)
0.2 Available View build log
Linux (64-bit)
0.2 Available View build log
 
License
BSD
Dependencies
Imports
Lastest release
version 0.2 on Jan 5th, 2011

Flask-Zen is an extension to Flask that allows you to use PyZen via Flask-Script commands. Both a simple test runner command and the standard PyZen auto-runner are provided. You can install the requirements from PyPI with easy_install or pip or download them by hand.

Installation

Install the extension with one of the following commands:

$ easy_install Flask-Zen

or alternatively if you have pip installed:

$ pip install Flask-Zen

Configuration

PyZen exposes two Flask-Script commands: Test and ZenTest. To configure both:

System Message: WARNING/2 (<string>, line 29)

Literal block expected; none found.

from flaskext.script import Manager from flaskext.zen import Test, ZenTest

manager = Manager(app)

manager.add_command('test', Test()) manager.add_command('zen', ZenTest())

if __name__ == '__main__': manager.run()

Any of the command-line options below can be overridden using a keyword argument to the Test or ZenTest constructor:

System Message: WARNING/2 (<string>, line 44)

Literal block expected; none found.

manager.add_command('zen', ZenTest(nocolor=True, ui='none'))

Usage

The Test command will run a single test run and exit. The ZenTest command will run the normal PyZen continuous tester.

-s, --start-dir : default: location of manage.py Base directory for test discovery.

-p, --pattern : default: */tests/*.py;*/tests.py Semicolon separated file globs to use for loading tests.

-v, --verbosity : default: 1 Test runner verbosity.

--nocolor : flag, default: False Disable colored output.

-u, --ui : only for ZenTest, default: autodetect Force the use of a specific UI module. Available options are win32, osx, linux, and none.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.