Built on ASGI with native async/await support throughout the framework.
- High-performance request handling
- WebSocket support out of the box
- Connection pooling for databases
- Event-driven architecture
Perfect for building real-time applications and APIs.
🎯
Clean Architecture
Modular design with clear separation of concerns:
- Dependency injection system
- Middleware pipeline
- Event hooks and observers
- Structured error handling
- Domain-driven design ready
🔨
Complete Toolkit
Everything you need in one place:
- Type-safe routing
- Session management
- CORS & CSRF protection
- WebSocket channels
- File uploads
- Template engines
- OpenAPI/Swagger
- Testing utilities
- Email sending with nexios-contrib mail
Focus on productivity:
- Clear error messages
- Auto-reload in development
- CLI tools and scaffolding
- Comprehensive logging
- Debug toolbar
- Type hints everywhere
- IDE integration
Broadcasta is a powerful real time messaging and event broadcasting service from Nexios Labs. Seamlessly integrate real time features into your applications with WebSocket management, event broadcasting, channel based messaging, and more without the infrastructure headache.
from nexios import Depend# Both generator and async generator dependencies are supported.# Cleanup in the finally block is always run after the request.def get_db(): db = connect() try: yield db finally: db.close()async def get_async_db(): db = await async_connect() try: yield db finally: await db.close()@app.get("/users")async def list_users( request, response, db=Depend(get_db) # or db=Depend(get_async_db)): users = await db.query("SELECT * FROM users") return response.json(users)
Nexios comes with a powerful command-line interface that makes development and deployment a breeze. The Nexios CLI is your primary tool for managing Nexios applications throughout their lifecycle.