Lazy Ninja is a Django library that streamlines the creation of API endpoints by automatically generating structured, documented routes from your models. Built on Django Ninja, it features dynamic schema generation, built-in documentation, and customizable behaviors to enhance the development process, allowing faster delivery without compromising functionality.
Lazy Ninja is a powerful Django library designed to streamline the creation of API endpoints. By leveraging the capabilities of Django Ninja, this library dynamically scans Django models to automatically generate structured Pydantic schemas for various operations such as listing, retrieving, creating, and updating records.
before_create and after_update for enhanced control over API workflows.To quickly get started, integrate Lazy Ninja into your Django project with just a few lines of code:
from ninja import NinjaAPI
from lazy_ninja.builder import DynamicAPI
api = NinjaAPI()
auto_api = DynamicAPI(api)
auto_api.init()
Simply add api.urls to your urls.py to expose the generated endpoints.
Current plans for future enhancements include:
For those interested in contributing, the repository invites forks and pull requests for any improvements or bug fixes.
Explore the complete Lazy Ninja Documentation for detailed guidance on advanced usage, configuration options, and more.
No comments yet.
Sign in to be the first to comment.