Skip to main content

drf-dropdown

GitHub GitHub Workflow Status PyPI PyPI - Python Version Pre-commit Enabled

Dropdown population implementation for Django REST Framework

Usage

Add DropdownView to API URL

# urls.py
import dropdown

urlpatterns = [
    ...
    path('dropdown/', dropdown.DropdownView.as_view(), name='dropdown'),
]

Define new dropdown

# someapp/dropdown.py
import dropdown

@dropdown.register
def users(query='', **kwargs):
    return dropdown.from_model(User, label_field='email')

Development

Set Up

make setup

Metadata

Release files for drf-dropdown 0.4.1

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

Source distribution (sdist)

Source distribution for drf-dropdown 0.4.1
File Size Uploaded Provenance Actions
drf_dropdown-0.4.1.tar.gz 6.2 kB Without provenance Details for drf_dropdown-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for drf-dropdown 0.4.1
File Interpreter ABI Platform Actions
drf_dropdown-0.4.1-py3-none-any.whl Python 3 none any Details for drf_dropdown-0.4.1-py3-none-any.whl

Total release size: 14.0 kB

Release files / drf_dropdown-0.4.1.tar.gz

Download URL drf_dropdown-0.4.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d9b0c17891b888a7b18674db56e639b7d62cfb0beef5ef0c8b6dfebe04b74f2c
BLAKE2b-256 checksum
How to use checksums
7d430f2eae530add38c4daedcbbb6a3b3f5782de236651267a23820b19d90125
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.8.15 Linux/5.15.0-1024-azure

Release files / drf_dropdown-0.4.1-py3-none-any.whl

Download URL drf_dropdown-0.4.1-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23eaccc9a844a568564c33c925deecf3de4be317a498947cd0135a1c64796d60
BLAKE2b-256 checksum
How to use checksums
a2a21eda9a6b11f2c3508e740f99a95d4cbc81be6915a67ec992e05e039f7340
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.8.15 Linux/5.15.0-1024-azure

Security for drf-dropdown 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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