Impulse Shell
Python Shell
Failed to load latest commit information.
bin Fixed AtributeError in issue #4 now if an attribute does not exist on… Feb 21, 2012
conf Added sample config file, closing issue #1 Feb 20, 2012
ish.egg-info Version bump Feb 23, 2012
ish Switched to spaces from tabs Mar 7, 2012
tests Switched to spaces from tabs Mar 7, 2012
README.rst Switched to spaces from tabs Mar 7, 2012


Impulse Shell (ish)


Impulse Shell is the command-line interface for Impulse and is intended to allow easy programmatic actions on systems in Impulse.

The shell portion of ish is a modified Python shell, so it's possible to use normal Python programming constructs like for, if, and list interpretations.

This README is written in ReST.


From inside of ish (start with the command 'ish')

# You can get a system by its name and it will only return a single system

>>> mysystem = System.find('thename')

# Or you can search by any parameter of an object, not just its name

# Some parameters are owner, last_modifier, type, and os_name

>>> all_my_systems ='myname')
>>> all_fedora_systems ='Fedora')
>>> print all_my_systems

[system1, system2, system3]

>>> mysys = all_my_systems[0]
>>> print


>>> mysys.os_name


>>> mysys.os_name = "Fedora"
>>> mysys.put()
>>> mysys.os_name



The impulse-query command is a quick way to perform a query

impulse-query -t <object type> [-p <param> <param value>]

If no params are given, it will list every object of that type. This may take some time.