Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 742 Bytes

changelog.md

File metadata and controls

49 lines (30 loc) · 742 Bytes

0.7.1

Support asyncio debug mode (PYTHONASYNCIODEBUG = 1)

0.7

  • Support decorators for handlers
from functools import wraps
from aiohug import RouteTableDef

routes = RouteTableDef()

def some_decorator(func):
    
    @wraps(func)
    def wrapper(request, *args, **kwargs):
        # Some logic for decorator
        return func(*args, **kwargs)
    
    return wrapper
    

@routes.get("/ping/")
@some_decorator
async def hello():
    return "pong"

0.6.1

  • Support prefix for handlers
from aiohug import RouteTableDef

monitoring_routes = RouteTableDef(prefix="monitoring")

@monitoring_routes.get("/ping/")
async def hello():
    return "pong"
    

0.5

  • Support marshmallow 3 instead of 2