Django API Generator - Free PyPI Library

Simple tool that Generates Secure APIs on top of DRF with minimum effort - Released under the MIT License on Github.

Django API Generator - Open-Source Library
Django API Generator - Open-Source Library 

Hello! This article presents an open-source API Generator for Django that provides a simple way to build APIs on top of any model defined in the project. The configuration is minimal and the generated service is restricted to the registered users via JWT Tokens. Sources, released under the MIT license on GitHub, can be extended, incorporated into other projects, or simply used in eLearning activities. Thanks for reading!

The tool once is installed using PIP, we need to follow up a few steps as described in the project README: update configuration and routing, generate the API using the CLI and start using the new API service.


✨ Generator Features

The library can be integrated with any Django project using PIP:

$ pip install django-api-generator

Once the library is installed, we should be able to generate API services in no-time.

  • βœ… API engine provided by DRF
  • βœ… Secured by JWT Tokens (mutating requests)
  • βœ… Minimal Configuration (single line in the config for each model)
  • βœ… Handles any model defined across the project
  • βœ… GET requests are public
  • βœ… Update, Delete, and Creation requests are protected

A video material that explains the integration process can be found on YoutTube and also the code is available for download from GitHub.

πŸ‘‰ Django API Generator Sample - published on Github

Django API Generator for DRF - Free Library

The video presents all the steps from cloning a simple Django project, to library installation, configuration, and usage for two different models.

In the end, the generated service is tested in the browser and also in POSTMAN (all requests).


Thanks for reading! For more resources and support please access:
  • πŸ‘‰ More Developer Tools provided by AppSeed
  • πŸ‘‰ Β Free support via Email & Discord (just in case)