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
- Setup: Auto Ninja configures your Django environment and identifies installed applications.
- Template Application: It applies pre-defined templates to create API structure under each app.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file auto_ninja-1.0.2.tar.gz.
File metadata
- Download URL: auto_ninja-1.0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c4e87493517b61a389a11a7bcd778245a2db7893ee91d0858ee0a206295ba3a
|
|
| MD5 |
e3cb4f01fa1f67d3a99f9c163f0beb1f
|
|
| BLAKE2b-256 |
eeb66329e871716182dd8b865b1f552a58b15177d2b004c24e087031c26077df
|
File details
Details for the file auto_ninja-1.0.2-py3-none-any.whl.
File metadata
- Download URL: auto_ninja-1.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
287531194f4b02f4429b9d2b65242876c0551c3007208c192995abbab3d81a4f
|
|
| MD5 |
391eb5869da0b4d49b4fa04390e49096
|
|
| BLAKE2b-256 |
dd6c0930c9e7e923e9db38e8cf8bb6390b269ad2fb244dd08bdbc61a0198f936
|