Skip to main content

An library of utilities and enhancements for Django's prefetch_related system.

Project description

This library provides a number of utilities for working with and extending Django’s prefetch_related system. Currently, it consists of:

  • a collection of descriptors to define relationships between models which support prefetching

  • a new implementation of prefetch_related_objects which supports an identity map so that multiple copies of the same object are not fetched multiple times.

  • Free software: BSD 3-Clause License

Installation

pip install django-prefetch-utils

Documentation

https://django-prefetch-utils.readthedocs.io/

Changelog

0.2.0 (2022-01-12)

  • Added library of descriptors for defining relationships of Django models which can be prefetched.

  • Add support for the latest version of Django and Python.

  • Removed support for Python 2 and unsupported Django versions.

  • Updated backport of prefetch_related_objects to latest version from Django 4.0.

0.1.0 (2019-07-16)

  • First release on PyPI.

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-prefetch-utils-0.2.0.tar.gz (62.6 kB view hashes)

Uploaded Source

Built Distribution

django_prefetch_utils-0.2.0-py2.py3-none-any.whl (29.1 kB view hashes)

Uploaded Python 2 Python 3

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