django-prefetch-utils-0.2.0
توضیحات
An library of utilities and enhancements for Django's prefetch_related system.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | django-prefetch-utils-0.2.0 |
| نام | django-prefetch-utils |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mike Hansen |
| ایمیل نویسنده | mike@rover.com |
| آدرس صفحه اصلی | https://github.com/roverdotcom/django-prefetch-utils |
| آدرس اینترنتی | https://pypi.org/project/django-prefetch-utils/ |
| مجوز | BSD 3-Clause License |
========
Overview
========
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.
نیازمندی
| مقدار | نام |
|---|---|
| >=2.2 | django |
| >=1.11 | wrapt |
نحوه نصب
نصب پکیج whl django-prefetch-utils-0.2.0:
pip install django-prefetch-utils-0.2.0.whl
نصب پکیج tar.gz django-prefetch-utils-0.2.0:
pip install django-prefetch-utils-0.2.0.tar.gz