# Really cool module
# with no API yet
def some_function():
"""Greets the world."""
return "Hello World!"
def another_function(a, b=372):
"""
Adds :a and :b and returns the result of
that operation.
"""
return a + b
def secret_function():
"""Greets the world (secretly)."""
return "Hello World in secret!"
from symmetric import symmetric
@symmetric.router("/sample", methods=["get"])
def some_function():
"""Greets the world."""
return "Hello World!"
@symmetric.router("/add")
def another_function(a, b=372):
"""
Adds :a and :b and returns the result of
that operation.
"""
return a + b
@symmetric.router("/secret", methods=["get"], auth_token=True)
def secret_function():
"""Greets the world (secretly)."""
return "Hello World in secret!"