Skip to content

Instantly share code, notes, and snippets.

@brianz
Last active September 15, 2016 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianz/7addb2cf37a6cadda3d15fd6c623bf21 to your computer and use it in GitHub Desktop.
Save brianz/7addb2cf37a6cadda3d15fd6c623bf21 to your computer and use it in GitHub Desktop.
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