Django Ninja Extra is a powerful extension for Django Ninja that enhances your Django REST API development experience. It introduces class-based views and advanced features while maintaining the high performance and simplicity of Django Ninja. Whether you're building a small API or a large-scale application, Django Ninja Extra provides the tools you need for clean, maintainable, and efficient API development.
Features
Core Features (Inherited from Django Ninja)
⚡ High Performance: Built on Pydantic for lightning-fast validation
🔄 Async Support: First-class support for async/await operations
📝 Type Safety: Comprehensive type hints for better development experience
🎯 Django Integration: Seamless integration with Django's ecosystem
📚 OpenAPI Support: Automatic API documentation with Swagger/ReDoc
🔒 API Throttling: Rate limiting for your API
Extra Features
🏗️ Class-Based Controllers:
Organize related endpoints in controller classes
Inherit common functionality
Share dependencies across endpoints
🔒 Advanced Permission System (Similar to Django Rest Framework):
We welcome contributions! Here's how you can help:
Fork the repository
Create a feature branch
Write your changes
Submit a pull request
Please ensure your code follows our coding standards and includes appropriate tests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support the Project
⭐ Star the repository
🐛 Report issues
📖 Contribute to documentation
🤝 Submit pull requests
DEPRECATION NOTICE
0.22.2
The service attribute in ModelController has been changed from a class object to an instance object. When creating a custom ModelService for a ModelController, you have to specify it as service_type.
This is because services are now injected as dependencies during controller instantiation. Service instantiation is delegated to the injector package, so ensure that any additional dependencies required by your ModelService are properly registered in the dependency injection container.