Skip to content

Instantly share code, notes, and snippets.

@brianz
Last active September 15, 2016 21:02
Embed
What would you like to do?
from servant.service.base import Service
import actions
class CalculatorService(Service):
name = 'calculator_service'
version = 1
action_map = {
'add': actions.AddAction,
'subtract': actions.SubtractAction,
'divide': actions.DivideAction,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment