Skip to main content

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.

Release files for django-prefetch-utils 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-prefetch-utils 0.2.0
File Size Uploaded
django-prefetch-utils-0.2.0.tar.gz 62.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-prefetch-utils 0.2.0
File Interpreter ABI Platform
django_prefetch_utils-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 91.8 kB

Release files / django-prefetch-utils-0.2.0.tar.gz

Download URL django-prefetch-utils-0.2.0.tar.gz
Size 62.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fd80c2b80a4e4d844b3a491b7f803c32c696b5300f12e63a7be190b95caad425
BLAKE2b-256 checksum
How to use checksums
5fd6fdf159a6b337fb4d67194a2fe1001d4698feb5a581ee0ff6fa7036e19d7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.2.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

Release files / django_prefetch_utils-0.2.0-py2.py3-none-any.whl

Download URL django_prefetch_utils-0.2.0-py2.py3-none-any.whl
Size 29.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c6cb2779f4c591ba4b59dac2666075b080260e6c137b33d0b6d808fcbe87823e
BLAKE2b-256 checksum
How to use checksums
4287b88b978fedc86fb6833adfdb4aa185a7c83b7f16507b14ae17c69bd782a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.2.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page