Skip to main content

Bundle of useful classes and functions for Django

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

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.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

django_utils_kit-1.0.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django_utils_kit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b13c5a09ad7488af8a8d906615cec3f1f494e5eaa1bfc4ca6a51700630711b8c
MD5 193d014627f74b5446514f996b86476f
BLAKE2b-256 6c2a4596ec21de4641e2b2f4ebf53b5d4859582aec3477bf62ff7f1529aeca43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_utils_kit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5903bf868b1c5d0c3dffd20889c5e867a17dd4161f22d60b1fb6cf265e11069
MD5 7cd8294bfa896b9bc02a571f15c9236d
BLAKE2b-256 0cdcfc3574c5e02c29b898ed50d803824aff1f65166b811e25b850080e0c1216

See more details on using hashes here.

Supported by

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