Skip to content

Instantly share code, notes, and snippets.

@redmoses
Created December 19, 2015 18:02
Show Gist options
  • Save redmoses/d82efea640348198871c to your computer and use it in GitHub Desktop.
Save redmoses/d82efea640348198871c to your computer and use it in GitHub Desktop.
Ladon Service Example App
from ladon.ladonizer import ladonize
class Calculator(object):
#ladonize the method
@ladonize(int, int, rtype=int)
def add(self, a, b):
return a + b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment