Skip to main content

A lightweight library to quickly build CRUD API endpoints for Django Ninja.

Project description

Auto Ninja

Overview

Auto Ninja is a Python library designed to streamline the setup of Django APIs by automatically generating the necessary files and configurations. With customizable options, Auto Ninja reduces boilerplate and accelerates the development process.

Features

  • Automatic generation of API structure in Django.
  • Creates service, utility, and main application files.
  • Dynamically generates endpoint and schema files for all models in installed Django applications.
  • Easy integration using command-line options with Typer.

Installation

To install Auto Ninja, make sure you have Python and pip installed, then execute:

pip install auto-ninja

Usage

To get started with Auto Ninja, simply run the script with the desired configuration options:

auto-ninja [OPTIONS]

Options

  • --title TEXT: The title of the application (default: "Auto Ninja").
  • --description TEXT: Description of the application (default: "Automatically generated API").

Example

Here's how you can use Auto Ninja to set up your API:

auto-ninja --title "My API" --description "This API is auto-generated by Auto Ninja"

How It Works

  1. Setup: Auto Ninja configures your Django environment and identifies installed applications.
  2. Template Application: It applies pre-defined templates to create API structure under each app.
  3. Dynamic File Generation: Automatically generates appropriate endpoint and schema files for each model detected in your apps.

Customization

Auto Ninja uses templates that can be located in your project. Custom templates can be supplied to adjust the way files are generated to better fit your project's needs.

Contributing

We welcome contributions to enhance Auto Ninja! If you're interested, please follow our contribution guidelines and submit a pull request on GitHub.

License

Auto Ninja is licensed under the MIT License. See LICENSE for more details.

Acknowledgements

Thanks to all contributors and the open-source community for their support and collaboration.


If you encounter any issues or have questions, please open an issue on GitHub or contact us.

Happy coding with Auto Ninja!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auto_ninja-1.0.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auto_ninja-1.0.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file auto_ninja-1.0.1.tar.gz.

File metadata

  • Download URL: auto_ninja-1.0.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for auto_ninja-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4d540267a6b52f572607bfefb24d999821e490457a777446ea61a286d2495997
MD5 1581d3d1c80a070550185f54fbce1e76
BLAKE2b-256 64cb39761eb358ad80a9529729b45605663338da8348a5aecee55adfda71d4d3

See more details on using hashes here.

File details

Details for the file auto_ninja-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: auto_ninja-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for auto_ninja-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 631698d03fc07fd23d84335ecf4d521b2a20cc804030067d58c876c4e661988b
MD5 cde344118b788556d9f04dceb4aabe5b
BLAKE2b-256 383bccb5f56cf4ddcdb58379b23f7feed84c14dd36214e2d033c1d72bc6ddbda

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page