Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(9) | Call(7) | Derive(0) | Import(2)
src/p/i/PipeStack-0.5.3/pipestack/app.py PipeStack(Download)
import warnings from bn import AttributeDict, uniform_path, OrderedDict from commandtool import handle_command, Cmd, LoggingCmd from configconvert import parse_and_split_options_change_dir, parse_config_string, split_options
def __init__(self, option=None): self._pipes_by_name = {} self._plugins = {} self._commands_structure = OrderedDict() self._instantiated_pipes = {}
command['class_'] = eval_import(command.class_) elif isinstance(command.class_, (tuple, list)): command['class_'] = OrderedDict(command.class_) self._commands_structure[command.name] = command
if hasattr(command, 'class_'): if isinstance(command.class_, dict): command_tree[name] = OrderedDict() initialise_branch(bag, command_tree[name], command.class_) else: command_tree[name] = command.class_(bag=bag, name=name, aliases=command.aliases) else: if hasattr(command, 'class_'): command_tree[name] = OrderedDict()
src/c/o/CommandTool-0.5.3/commandtool/__init__.py CommandTool(Download)
from logging.config import fileConfig from recipes_267662 import wrap_onspace_strict, indent from bn import AttributeDict, OrderedDict, MarbleLike log = logging.getLogger(__name__)
if isinstance(command, (tuple, list, dict)): if isinstance(command, (tuple, list)): command = OrderedDict(command) for name_, command_ in command.items(): check_command(name_, command_)
cmd_line_parts = sys.argv[1:] if not isinstance(commands, dict): commands = OrderedDict(commands) for name, command in commands.items(): check_command(name, command)