Add .values_nested() to Django querysets for nested prefetch dictionaries
Project description
Django Nested Values
An experimental package that adds .values_nested() to Django querysets, returning nested dictionaries with related objects included.
Quick Example
# Uses familiar Django patterns
Book.objects.only("title").select_related("publisher").prefetch_related("authors").values_nested()
# [{"id": 1, "title": "...", "publisher": {...}, "authors": [...]}]
Documentation
See the full documentation for installation, usage, and API reference.
Supported Versions
| Python 3.13 | Python 3.14 | |
|---|---|---|
| Django 5.2 | ✓ | ✓ |
| Django 6.0 | ✓ | ✓ |
License
MIT
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_nested_values-1.0.0.tar.gz.
File metadata
- Download URL: django_nested_values-1.0.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b713c5f8963cee1fc203d73eedb274485535c3e7edd88753f224c82da6de243
|
|
| MD5 |
54d211d589768c57211518eca111be6f
|
|
| BLAKE2b-256 |
05319643c5da3cbf6c6e2d021c4b03630107682f866b5abd19ecfb9b39f96548
|
Provenance
The following attestation bundles were made for django_nested_values-1.0.0.tar.gz:
Publisher:
publish.yml on oliverhaas/django-nested-values
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_nested_values-1.0.0.tar.gz -
Subject digest:
5b713c5f8963cee1fc203d73eedb274485535c3e7edd88753f224c82da6de243 - Sigstore transparency entry: 842504543
- Sigstore integration time:
-
Permalink:
oliverhaas/django-nested-values@b0999436751120b8fc26365dcf36147f7b6602c8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/oliverhaas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b0999436751120b8fc26365dcf36147f7b6602c8 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file django_nested_values-1.0.0-py3-none-any.whl.
File metadata
- Download URL: django_nested_values-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd976ab5e8364cb9587a5a97d5733411fd791546941ced80cb4e8bf05901c4a0
|
|
| MD5 |
4636013ea68fa52bcf34716f444294e9
|
|
| BLAKE2b-256 |
cf31c46c4cdff0a51f6d98b10314865e52f2ccb50e83bfd176e5108675e99efa
|
Provenance
The following attestation bundles were made for django_nested_values-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on oliverhaas/django-nested-values
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_nested_values-1.0.0-py3-none-any.whl -
Subject digest:
dd976ab5e8364cb9587a5a97d5733411fd791546941ced80cb4e8bf05901c4a0 - Sigstore transparency entry: 842504545
- Sigstore integration time:
-
Permalink:
oliverhaas/django-nested-values@b0999436751120b8fc26365dcf36147f7b6602c8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/oliverhaas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b0999436751120b8fc26365dcf36147f7b6602c8 -
Trigger Event:
workflow_dispatch
-
Statement type: