Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(0)  |  Derive(3)  |  Import(3)
Base class for all commands. Your subclass must implement
run().

If your command accept command line arguments, just add they
to the user_options list. Each command in this list is a
dictionary, containing two keys: 'args', and 'kwargs'. Like this:

[{'args': ('opt1',)
 'kwargs': {'default': True}}, ...]
(more...)

src/p/y/pyrocumulus-0.4.2.1/pyrocumulus/commands/runtornado.py   pyrocumulus(Download)
from pyrocumulus.utils import get_value_from_settings
from pyrocumulus.conf import settings
from pyrocumulus.commands.base import BaseCommand
from pyrocumulus.web.applications import get_main_application
 
 
class RunTornadoCommand(BaseCommand):

src/p/y/pyrocumulus-0.4.2.1/pyrocumulus/commands/createproject.py   pyrocumulus(Download)
 
import os
from pyrocumulus.commands.base import BaseCommand
 
 
class CreateProjectCommand(BaseCommand):
 
    user_options = [
        # path
        {'args': ('path',),

src/p/y/pyrocumulus-0.4.2.1/pyrocumulus/commands/test.py   pyrocumulus(Download)
#-*- coding: utf-8 -*-
 
from setuptools.dist import Distribution
from setuptools.command.test import test
from pyrocumulus.commands.base import BaseCommand
 
 
class TestCommand(BaseCommand):