Extends phx-filters, adding filters useful for Django applications.
Project description
Django Filters
Adds filters for for Django-specific features, including:
filters.ext.Model: Search for a DB model instance matching the incoming value.
Requirements
Django Filters is known to be compatible with the following Python versions:
3.14
3.13
3.12
Only Django LTS versions are supported.
Installation
This package is an extension for the Filters library, so you can install it as an extra to phx-filters:
pip install phx-filters[django]
If desired, you can install this package separately. This allows you to control the package version separately from phx-filters:
pip install phx-filters-django
Maintainers
To set up a local development environment:
Install uv (once per machine).
Install dependencies:
uv sync
Activate pre-commit hooks:
uv run autohooks activate --mode=pythonpath
Run tests for all supported Python versions using tox:
uv run tox -p
To run tests in the current virtualenv:
uv run python manage.py test
Documentation
Documentation is available on ReadTheDocs.
Source files for this project’s documentation can be found in the phx-filters repo.
Releases
1. One-time setup
Create a PyPI API token if you don’t have one, then install keyring as a global tool and store the token:
uv tool install keyring
uv tool update-shell
keyring set https://upload.pypi.org/legacy/ __token__
Paste your pypi-... token when prompted.
2. Publish to PyPI
Bump the version (updates pyproject.toml and uv.lock):
uv version <version>
Commit the changes:
git add pyproject.toml uv.lock git commit
Publish to PyPI:
uv publish --username __token__
3. Create GitHub Release
Create an annotated tag and push to GitHub:
git tag -a <version> -m "Release <version>" git push origin <version>
<version> must match the updated version number in pyproject.toml.
Go to the Releases page for the repo.
Click Draft a new release.
Select the tag that you created in step 1.
Specify the title of the release (e.g., Django Filters v1.2.3).
Write a description for the release. Make sure to include: - Credit for code contributed by community members. - Significant functionality that was added/changed/removed. - Any backwards-incompatible changes and/or migration instructions. - SHA256 hashes of the build artefacts.
GPG-sign the description for the release (ASCII-armoured).
Attach the build artefacts to the release.
Click Publish release.
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
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 phx_filters_django-3.2.0.tar.gz.
File metadata
- Download URL: phx_filters_django-3.2.0.tar.gz
- Upload date:
- Size: 61.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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 |
d3c8a770e107fbdce668ea1c23f5d5f2a68404f5fda8d952bac811fcdf4bd2df
|
|
| MD5 |
f1fddcaa68a50df7dde9428e706e3963
|
|
| BLAKE2b-256 |
975d50b351e3d0a48e90a0ec6b0fbbec4f7f454629c47e258ad99ec541136991
|
File details
Details for the file phx_filters_django-3.2.0-py3-none-any.whl.
File metadata
- Download URL: phx_filters_django-3.2.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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 |
e059ffa24dca8ab83d04a56e31371c26bcbd87a0c1dab24d5c6304acacf17883
|
|
| MD5 |
98af59801cb7133888afd98b4ebe3589
|
|
| BLAKE2b-256 |
5caf24ea786423b30badbcf1b4f2fc747758563117716156393fd45c69c6dc54
|