Advanced auto related filters for Graphene Django
Project description
Django Graphene Filters (Beta)
This package contains Advanced auto related filters for graphene-django.
This package takes inspiration from:
- https://pypi.org/project/graphene-django-filter
- https://pypi.org/project/djangorestframework-filters
Installation
# pip
pip install django-graphene-filters
# uv
uv add django-graphene-filters
Development Setup
# Install uv (if not already installed)
# https://docs.astral.sh/uv/getting-started/installation/
# Clone and install
git clone https://github.com/riodw/django-graphene-filters.git
cd django-graphene-filters
uv sync
Running
uv run python examples/cookbook/manage.py runserver
Testing
uv run coverage run -m pytest
uv run coverage report --fail-under=100
uv run coverage report --show-missing
uv run coverage run -m pytest tests/test_input_data_factories.py && uv run coverage report -m django_graphene_filters/input_data_factories.py
# Run Full Test Pipeline
https://github.com/riodw/django-graphene-filters/actions/workflows/django.yml
Formatting and Linting:
# pyproject.toml [tool.black]
uv run black .
# pyproject.toml [tool.ruff]
uv run ruff check --fix .
Build
uv lock
uv build
Updating Version:
- pyproject.toml:4
- django_graphene_filters/init.py:21
- tests/test_django_graphene_filters.py:8
Publish
uv publish --token PASSWORD
Updating:
# Show outdated packages
uv pip list --outdated
# Add a dev dependency
uv add --group dev <package>
# Remove the virtual environment
rm -rf .venv
Local usage
- go to the project you want to install the package
- add
django-graphene-filtersto yourpyproject.tomldependencies - point it at your local checkout:
# In your project's pyproject.toml
[tool.uv.sources]
django-graphene-filters = { path = "../django-graphene-filters", editable = true }
Then run:
uv sync
Notes:
Files to do:
- filterset.py
AdvancedFilterSet - input_data_factories.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_graphene_filters-0.3.1.tar.gz
(147.1 kB
view details)
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_graphene_filters-0.3.1.tar.gz.
File metadata
- Download URL: django_graphene_filters-0.3.1.tar.gz
- Upload date:
- Size: 147.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d19ca8ce4bbbc2704d68d983417d3fc06be38c5de71cb52c04b85501a1464b78
|
|
| MD5 |
f30acfc71cec8a9f3f8bc1a213730289
|
|
| BLAKE2b-256 |
471ff985a030fe5f68a9f8cffbf57c7b94f001b00e322465914901789ca97784
|
File details
Details for the file django_graphene_filters-0.3.1-py3-none-any.whl.
File metadata
- Download URL: django_graphene_filters-0.3.1-py3-none-any.whl
- Upload date:
- Size: 35.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bd1c4123ce95647a98d5309e231f63b8a894445d2de37c405fb11777dac692b
|
|
| MD5 |
766e61c2210829773c55eaa2047293b5
|
|
| BLAKE2b-256 |
0c39db3c4ec8883527cb77e1d57081d47d7a258abcd56ff9de6c0ba9773d02eb
|