Lazy Ninja

screenshot of Lazy Ninja
django

A Django library that turns your models into instant APIs. Built on top of Django Ninja, it auto-generates structured, documented endpoints so you can skip the boilerplate and ship faster

Overview

Lazy Ninja is a powerful Django library designed to simplify the process of generating API endpoints using Django Ninja. By utilizing this tool, developers can dynamically scan their Django models, enabling the automatic creation of Pydantic schemas for various operations such as listing, retrieving, creating, and updating records. This functionality not only streamlines development but also provides the flexibility to customize behaviors through controllers and configurations.

Additionally, Lazy Ninja makes working with APIs even easier by offering automatic, interactive documentation via OpenAPI. This feature allows developers and users alike to visualize and interact with the API endpoints effectively, eliminating much of the guesswork involved in API integration.

Features

  • Automatic Endpoints: Instantly generate API routes for your Django models without any manual setup.
  • Dynamic Schema Generation: Automatically create Pydantic schemas tailored for your models, saving time and effort.
  • Custom Controllers: Enhance route behavior with customizable hooks, allowing you to implement actions like before_create and after_update.
  • Built-in Filtering, Sorting, and Pagination: Simplifies data handling with convenient query parameters, improving user experience.
  • Interactive Documentation: Enjoy built-in support for Swagger UI and ReDoc, making it easy to visualize and interact with your API endpoints.
django
Django

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It follows the model-view-controller (MVC) architectural pattern, providing an extensive set of built-in tools and conventions to streamline the creation of robust and scalable web applications.