Aiohug

Latest version: v0.7.1

Safety actively analyzes 690691 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.7.1

Support asyncio debug mode (`PYTHONASYNCIODEBUG = 1`)

0.7

* Support decorators for handlers

python
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

python
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

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.