Skip to main content

DjangoPrime is an all-in-one Django library designed to accelerate your development process. It offers over 1000 custom exception classes, a powerful suite of middleware integrations, flexible JWT configuration services, and advanced tools for managing enums and models. DjangoPrime also includes pre-built solutions, absolute models, and modular components that allow developers to build scalable, maintainable, and sophisticated Django applications easily.

Project description

DjangoPrime

DjangoPrime is an all-in-one, powerful Django library designed to accelerate your development process. It provides a comprehensive toolkit, including over 1000 custom exception classes, middleware integrations, JWT configuration services, and advanced tools for enums and model management. DjangoPrime empowers developers to build scalable, maintainable, and sophisticated Django applications with ease.

Whether you're building a RESTful API or a full-fledged web application, DjangoPrime offers the modular components and pre-built solutions necessary to streamline your workflow and boost your development speed.

Features

  • 🚀 Quick Start Templates: Get started with Django in seconds using predefined project structures and configurations.
  • 🔧 Environment Management: Easily manage environment variables and settings with flexible tools.
  • 📦 Modular Components: A collection of ready-to-use apps and components that can be easily integrated into any Django project.
  • 💡 Custom Exception Classes: Enhance error handling with over 1000 pre-defined, customizable exception classes for various scenarios.
  • 🔐 JWT Authentication: Easily integrate JWT-based authentication for secure user login and authorization. (Coming Soon)
  • 🏗️ Absolute Models: Pre-built, scalable models to help you structure your application efficiently and reduce repetitive code.
  • ⚙️ Middleware Integrations: A comprehensive set of middleware components that support custom responses, logging, and advanced logic handling.
  • 📊 Advanced Enums & Choices: Tools to manage custom choices and enums, making it easier to handle complex model fields.
  • 🔑 Flexible JWT Configuration: Customizable JWT services and token handling, providing you full control over authentication settings.

Installation

You can install the DjangoPrime, package using either pip or pipenv:

pip install djangoprime

Quickstart

1. Initialize a New Django Project

Install DjangoPrime using pip or pipenv as shown above.

2. Add DjangoPrime to INSTALLED_APPS

Once installed, add djangoprime to the INSTALLED_APPS list in your settings.py file:

INSTALLED_APPS = [
    # other apps
    'djangoprime',
]

3. Add Middleware to MIDDLEWARE

Next, configure the middleware by adding it to the MIDDLEWARE setting in your settings.py file:

MIDDLEWARE = [
    # other middleware
    'djangoprime.middleware.APIResponseMiddleware',
]

4. Configure Custom Exception Handler

To handle exceptions with the DjangoPrime custom handler, configure the EXCEPTION_HANDLER in your settings.py:

REST_FRAMEWORK = {
    'EXCEPTION_HANDLER': 'djangoprime.exceptions.handler.exception_handler',
}

This will set up a custom exception handler for better error management and reporting in your REST framework views.

Documentation

For full documentation, visit the DjangoPrime Documentation (Coming Soon).

License

This project is licensed under a modified MIT License - see the LICENSE file for details.

Author & Maintainer

Created and maintained by Ankaj Gupta, the developer behind DjangoPrime.

Feel free to connect with me on LinkedIn for any inquiries.


This version organizes the information clearly, ensures that placeholders for future content are marked, and maintains a professional tone throughout. Adjust the documentation and URLs when they are available.

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

djangoprime-0.0.3.tar.gz (38.9 kB view details)

Uploaded Source

Built Distribution

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

djangoprime-0.0.3-py3-none-any.whl (50.6 kB view details)

Uploaded Python 3

File details

Details for the file djangoprime-0.0.3.tar.gz.

File metadata

  • Download URL: djangoprime-0.0.3.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for djangoprime-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b86029a178cee24802838fa9d26c9216bdafaf0ed0c25b05fee910e80b196c23
MD5 1ed36f9ef61091bb0b17607d709c9848
BLAKE2b-256 fb81d1fac8a3b0bee8b83771842f3e3fc6efc88bc047b618f884a837f84ff43d

See more details on using hashes here.

File details

Details for the file djangoprime-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: djangoprime-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 50.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for djangoprime-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b309826baee7d42eebf05898736f49122753c41995ca66bb53f64c4092d18342
MD5 ffff51fe2f33e91d5a281494daebc05b
BLAKE2b-256 40fdfe95903d17acf71e03cc06d8d6f5fcd9cafe3783764c3d4e2e47cd64aab1

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