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 khufu-script

How to install khufu_script

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install khufu-script
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.6.2 Available View build log
0.6.1 Available View build log
0.6 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
0.2 Available View build log
Windows (64-bit)
0.6.2 Available View build log
0.6.1 Available View build log
0.6 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
0.2 Available View build log
Mac OS X (10.5+)
0.6.2 Available View build log
0.6.1 Available View build log
0.6 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
0.2 Available View build log
Linux (32-bit)
0.6.2 Available View build log
0.6.1 Available View build log
0.6 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
0.2 Available View build log
Linux (64-bit)
0.6.2 Available View build log
0.6.1 Available View build log
0.6 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
0.2 Available View build log
 
Author
License
BSD
Lastest release
version 0.6.2 on Aug 30th, 2011

Overview

khufu_script provides a manage script for Khufu/Pyramid projects. Following the usual Khufu opinions, certain commands assume you are using SQLAlchemy to manage your data.

Usage

Using khufu_script is as easy defining the runner and registering it with disutils console_script entry point.

As an example, consider a Pyramid-based web app with a distribution name of "NoteTaker" and a main package of "notetaker".

First create notetaker/manage.py with the following content:

import khufu_script
settings = {
    'sqlalchemy.url': 'sqlite:///notetaker.db'
}
main = khufu_script.make_manager(name='NoteTaker',
                                 app_factory='notetaker.app',
                                 config_filename='notetaker-settings.ini',
                                 settings=settings,
                                 db_metadatas=['notetaker.models.Base.metadata']).main
if __name__ == '__main__':
    main()

Next make adjustments to setup.py:

from setuptools import setup

setup(name='NoteTaker',
      # ...
      entry_points={
        'console_scripts': [
            'notetaker-manage = notetaker.manage:main',
            ]
        }
      )

After installing your app you can launch your app by typing:

$ notetaker-manage

Or by running the module directly:

$ python -m notetaker.manage

Available Commands

Commands:
    runserver             Run a reloadable development web server.
    loaddata              Add data based on the YAML from filename
    shell                 Launch a Python shell
    syncdb                Ensure all database tables exist

Credits

Created and maintained by Rocky Burt <rocky AT serverzen DOT com>.

Changes

0.6.2 (Aug-29-2011)
  • syncdb/upgradedb now reflect on the database more to avoid circular model dependencies
0.6.1 (Jul-10-2011)
  • Added "rshell" command for connecting to a remote rfoo server and work with live-running objects
0.6 (May-14-2011)
  • first release

Subscribe to package updates

Last updated Aug 30th, 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.