Build production-ready Django REST APIs faster with less boilerplate.
Project description
Django Mindoff
Build production-ready Django REST APIs faster with less boilerplate.
Django Mindoff is an architectural framework that manages the structure and mechanics of API development so developers can focus on business logic, with efficient data workflows powered by Polars.
Documentation: https://django.mindoff.work
Source: https://github.com/mindoffwork/django-mindoff
Key Features
-
Project Setup That Just Works
Start a new API project with guided CLI commands for init, create, delete, and nuke. Projects start ready to run with a sensible structure, so developers can begin building APIs immediately without worrying about project layout. -
Fully Managed APIs
Define request method, access control, payload rules, rate limits, and execution mode in a single API definition. Mindoff enforces these rules automatically, handling validation, security checks, and execution flow behind the scenes. -
API Versioning That Stays Manageable
Ship and evolve versioned APIs using a built‑in routing structure. APIs are automatically organized so new versions stay clean while existing clients continue working without disruption. -
Queue-Ready APIs
Run APIs synchronously or as background processes when needed. Simply switchprocess_modeto"queue"and Mindoff handles queue orchestration, status tracking, progress updates, cancellation, and retries. -
Validation in One Line
Use simple validation helpers that keep API logic clean and cognitively light. With aggregation support, multiple validation errors can be captured together and returned in a structured response. -
Consistent Responses, Every Time
Return responses through a unified response structure using response endpoints. Messages stay professional, consistent, and predictable across the entire API surface. -
Vectorized Model Validation & Bulk Writes
Pass amodel_frame(DataFrame or LazyFrame) tocreateorupdateand Mindoff validates it automatically against the Django model. Validation runs in a vectorized, loop‑free pipeline and valid rows are written directly to the model's table with high efficiency. -
Querysets to DataFrames, Instantly
Provide a Django queryset and Mindoff converts the results into a DataFrame or LazyFrame. Data is returned with built‑in pagination and streaming support, making large reads predictable and efficient. -
Optimized Polars Utilities for DataFrame & LazyFrame
Run checks, conversions, and transformations seamlessly across both DataFrame and LazyFrame with Mindoff’s Polars utilities. Operations run natively in vectorized form and stay tuned for performance and efficiency, keeping data pipelines smooth and predictable. -
Tests With Almost No Setup
Write API tests using declarative test mixins that talk to the API automatically. Focus on verifying behavior instead of crafting request calls and basic assertions, which are handled automatically by Mindoff.
Quick Start
1. Install the Package
pip install django-mindoff
2. Initialize a Project
django-mindoff init
This sets up the project foundation for you, including structure, config files, and ready-to-run wiring. Framework dependencies are managed internally, and django-mindoff aligns compatible Django, DRF, and Polars versions for you. Read the complete list here: requirements guide.
What you should see:
- A new project scaffold with
manage.py,mindoff.py,config/, andapps/ - Environment and config files ready to use
3. Create an App
python mindoff.py create
In the interactive flow, choose option 1 and create an app named shop.
What you should see:
- App folder at
apps/shop/ - App route linked as versioned URL at
config/urls.py - App path added
INSTALLED_APPSatconfig/settings.py
4. Create an API
python mindoff.py create
In the interactive flow, choose option 2 and create an API named ping under the shop app.
This generates the API file and wires its route so the endpoint is callable right away.
What you should see:
- API file at
apps/shop/apis/ping.py - URL route auto-registered at
apps/shop/urls.py
5. Return a Success Response
Open apps/shop/apis/ping.py and add this inside the API class run() method:
def run(self, request, *args, **kwargs):
return mo_response_kit.json_response(
code="SUCCESS",
category="success",
data={"message": "Hello from shop ping"}
)
6. Run and Verify
Before running, start your virtual environment:
For Windows:
.venv\Scripts\Activate.ps1
For Mac/Linux:
source .venv/bin/activate
Run the Migrations:
python manage.py makemigrations
python manage.py migrate
Run the Local Server:
python manage.py runserver
Open:
http://127.0.0.1:8000/v1/shop/ping/
What you should get:
- A JSON response with status, structured message metadata, and your data.message
✅ You now have a working API endpoint running with a structured success response.
From here, shape the run() method around your real business logic and output. To control response messaging, add custom entries in config/responses.csv with your preferred http_status code.
When you are ready to move beyond Quick Start, continue with the developer guide. It covers the package features in detail, explains configuration and architecture choices, and helps you build real-world applications with confidence.
License
This project uses the same BSD 3-Clause License as the Django project. See the LICENSE file for full terms.
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
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 django_mindoff-0.5.0.tar.gz.
File metadata
- Download URL: django_mindoff-0.5.0.tar.gz
- Upload date:
- Size: 899.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4779cc73fa29c29224f58deaf4fbe377c1babf69684bb0288477abde32f97698
|
|
| MD5 |
c7a9efa01da6b3f4751cd756be2f9323
|
|
| BLAKE2b-256 |
01c3bfe628f2353547fdce9d03377e960d3311fe2e4a8f2465c8d7b343d1123a
|
Provenance
The following attestation bundles were made for django_mindoff-0.5.0.tar.gz:
Publisher:
cd.yml on mindoffwork/django-mindoff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_mindoff-0.5.0.tar.gz -
Subject digest:
4779cc73fa29c29224f58deaf4fbe377c1babf69684bb0288477abde32f97698 - Sigstore transparency entry: 1310782596
- Sigstore integration time:
-
Permalink:
mindoffwork/django-mindoff@0cb6f198b633a332a805c07697696264b4a11dcf -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/mindoffwork
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@0cb6f198b633a332a805c07697696264b4a11dcf -
Trigger Event:
release
-
Statement type:
File details
Details for the file django_mindoff-0.5.0-py3-none-any.whl.
File metadata
- Download URL: django_mindoff-0.5.0-py3-none-any.whl
- Upload date:
- Size: 938.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3ad9494a552741f2a00f26e5e0d2f3ed999a1a01f6aa3107fe8f5cab5d03ff5
|
|
| MD5 |
7d1793a4ad2e0fa4b9011174731f73b9
|
|
| BLAKE2b-256 |
ba8efed19354b3832cc0e1750f350c84bf9743c67309484ede0e0051aaf95d2a
|
Provenance
The following attestation bundles were made for django_mindoff-0.5.0-py3-none-any.whl:
Publisher:
cd.yml on mindoffwork/django-mindoff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_mindoff-0.5.0-py3-none-any.whl -
Subject digest:
d3ad9494a552741f2a00f26e5e0d2f3ed999a1a01f6aa3107fe8f5cab5d03ff5 - Sigstore transparency entry: 1310782701
- Sigstore integration time:
-
Permalink:
mindoffwork/django-mindoff@0cb6f198b633a332a805c07697696264b4a11dcf -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/mindoffwork
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@0cb6f198b633a332a805c07697696264b4a11dcf -
Trigger Event:
release
-
Statement type: