panoramisk.actions

class panoramisk.actions.Action(*args, **kwargs)[source]

Dict like object to handle actions. Generate action IDs for you:

>>> action = Action({'Action': 'Status'})
>>> print(action) 
Action: Status
ActionID: action/myuuid/1/1

>>> action = Action({'Action': 'SIPnotify',
...                  'Variable': ['1', '2']})
>>> print(action) 
Action: SIPnotify
ActionID: action/myuuid/1/2
Variable: 1
Variable: 2
class panoramisk.actions.Command(*args, **kwargs)[source]

Dict like object to handle Commands. Generate action/command IDs for you:

>>> command = Command({'Command' : 'Do something'})
>>> print(command) 
Action: Command
ActionID: action/myuuid/1/1
Command: Do something
CommandID: command/myuuid/1/1