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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-prefetch-utils-0.2.0.tar.gz
.
File metadata
- Download URL: django-prefetch-utils-0.2.0.tar.gz
- Upload date:
- Size: 62.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd80c2b80a4e4d844b3a491b7f803c32c696b5300f12e63a7be190b95caad425 |
|
MD5 | 2ea56b2326af26cf71c37f477efad7c2 |
|
BLAKE2b-256 | 5fd6fdf159a6b337fb4d67194a2fe1001d4698feb5a581ee0ff6fa7036e19d7c |
File details
Details for the file django_prefetch_utils-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_prefetch_utils-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6cb2779f4c591ba4b59dac2666075b080260e6c137b33d0b6d808fcbe87823e |
|
MD5 | 05b1cd9005e92a5fbd737fef9c26d6ca |
|
BLAKE2b-256 | 4287b88b978fedc86fb6833adfdb4aa185a7c83b7f16507b14ae17c69bd782a9 |