Skip to main content

Bundle of useful classes and functions for Django

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

✨ Django Utils Kit ✨

Code quality Tests Build Coverage Tag Python Licence

Provides various utilities for working with Django and DRF:

  • admin.py: Additional classes and mixins for Django admin.
  • emails.py: Classes to easily send sync and async emails through Django.
  • exceptions.py: Additional exceptions for DRF.
  • files.py: Utilities for handling files with DRF.
  • images.py: Utilities for handling images within Django.
  • models.py: Additional classes and utilities for Django models.
  • network.py: Network related utilities to handle requests.
  • permissions.py: Additional permissions for DRF.
  • serializers.py: Additional serializers and fields for DRF.
  • test_runner.py: Custom test runners for Django.
  • test_utils.py: Additional TestCase classes with new assertions and utilities.
  • viewsets.py: Custom ViewSets for DRF.

💻 How to install

The package is available on PyPi with the name django-utils-kit. Simply run:

pip install django-utils-kit

📕 Available imports

Here's a list of all available imports for this package:

from django_utils_kit.admin import ReadOnlyAdminMixin
from django_utils_kit.emails import Email
from django_utils_kit.exceptions import Conflict, FailedPrecondition
from django_utils_kit.files import download_file, download_files_as_zip
from django_utils_kit.images import (
    downsize_and_save_image_from_path,
    downsize_image,
    image_to_base64,
)
from django_utils_kit.models import (
    FileNameWithUUID,
    ImprovedModel,
    PreCleanedAbstractModel,
    update_m2m,
    update_model_instance,
)
from django_utils_kit.network import get_client_ip, get_server_domain
from django_utils_kit.permissions import BlockAll, IsNotAuthenticated
from django_utils_kit.serializers import ReadOnlyModelSerializer, ThumbnailField
from django_utils_kit.test_runners import TimedTestRunner
from django_utils_kit.test_utils import APITestCase, AssertionTestCase, ImprovedTestCase
from django_utils_kit.viewsets import ImprovedViewSet

🔗 Useful links

⏳ Stats

Alt

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

django_utils_kit-1.0.2.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

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

django_utils_kit-1.0.2-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file django_utils_kit-1.0.2.tar.gz.

File metadata

  • Download URL: django_utils_kit-1.0.2.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for django_utils_kit-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b13b8811eeaef674ae1c3eab2114fa7ebc839fe1c2976daf1e374248d9f5a5ee
MD5 b7c403b7affdacd9d569c4060c067d91
BLAKE2b-256 b3c8fe7d51df182e03d4e3501e530e0b132c43f5a25468113e0b795a949c93a5

See more details on using hashes here.

File details

Details for the file django_utils_kit-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_utils_kit-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3c0d844a407b579b040eab1df19a7077b155fbbf272ebac903a9f467f7260336
MD5 91e5430ca0d5e29e24f7e7684e1a0d58
BLAKE2b-256 4a7ea7636a009932ae5674a73159719992c088a59f9fd390c11900b647ee5010

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