Lazy Ninja: simplifying API creation for Django models

Tired of coding CRUD endpoints over and over?

Recently, I faced this challenge at work—spending too much time writing CRUD APIs for quick tests. A colleague suggested automated routes, which led us to build a fully customizable tool in Node.js. That experience inspired me to create something similar for Django, and thus, Lazy Ninja was born

Lazy Ninja automates API generation for all your Django models, eliminating repetitive CRUD work. With just a few lines of code, you get:

  • Auto-generated endpoints & schemas
  • Custom hooks to tweak route behavior
  • Schema customization for specific models
  • Interactive OpenAPI docs (powered by Django Ninja)
  • Simple config to exlude models from specific apps

It’s still in early stages, and I’m looking for feedback to refine it further.

Check it out on GitHub along with the installation instructions: Lazy Ninja

Would love to hear your thoughts :saluting_face:

PS: Don’t use in production yet :sweat_smile:

2 Likes

Sounds great, I’m super new in Django. And actually self learning this as a hobby. Just curious would ninja api be the best candidate to create an api, to serve say a large model with 20 columns with lots of parameters? Like im thinking a cost library where i can write price of materials, their names, location, vendor, date valid, their pricelist ref, and so on. So that other people can make use of the api anywhere ? Or in the worst case i will :slight_smile: