Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Console commands manager for Pyramid framework

Project description

pyramid_command
===========

Console commands manager for Pyramid framework

usage
======

install package

Write your console commands.
For example in myproject/console.py:

from pyramid_command import Command

class MyCmd(Command):

name = "my_cmd"
description = "My usefull command"

args = (
("echo", {"help":"echo the string you use here"}),
(("-f", "--file"), {"help":"file"}),
)

def run(self, echo='dd', file=None):
print self.name, "runs", echo, file


Then configure where to search your commands.
For example in development.ini:

[app:main]
use = egg:myproject
...
...
console_commands = myproject.console


Now run:

>>>pcommand development.ini my_cmd echoval




CHANGES.txt

Project details


Release history Release notifications

This version

0.1

Download files

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

Files for pyramid_command, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pyramid_command-0.1.tar.gz (2.9 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