Skip to main content

Manage script support for Khufu/Pyramid apps

Project description


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.


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/ with the following content:

import khufu_script
settings = {
    'sqlalchemy.url': 'sqlite:///notetaker.db'
main = khufu_script.make_manager(name='NoteTaker',
if __name__ == '__main__':

Next make adjustments to

from setuptools import setup

      # ...
        '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

    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


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


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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for khufu_script, version 0.6.2
Filename, size File type Python version Upload date Hashes
Filename, size khufu_script-0.6.2.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page