Menu

1 / 3

A NestJS-like framework for Python: why I built Austial on FastAPI

DEV Community: fastapi·Austial·4 days ago
#RzGB4Lr7
#devtofastapi#devto#dev#nestjs#fastapi
Reading 0:00
15s threshold

If you are looking for a NestJS-like framework for Python , this is the one I built. NestJS gives a TypeScript backend a clear shape: modules, controllers, providers, guards, pipes and interceptors. When I moved back to Python I missed that shape. FastAPI is excellent, but it deliberately leaves the project structure to you, so every team ends up inventing its own.

Austial keeps the NestJS structure and runs on FastAPI and Pydantic. I maintain it, so treat this as a project write-up rather than a neutral review.

NestJS for Python: the same ideas

A controller looks the way a NestJS developer expects. Dependencies arrive through the constructor and are resolved from type hints:

@Controller ( "cats" ) class CatsController : def __init__ ( self , cats_service : CatsService ) : self . cats_service = cats_service

@Get ( ":id" ) @UseGuards ( ApiKeyGuard ) async def find_one ( self , id : int ) : return self . cats_service .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.