A Python module for determining whether arbitrary Python objects meet a set of defined criteria. Filters use JSON to represent a set of criteria that objects must meet. Filters can be arbitrarily nested and can contain conditional logic.
See /docs/filter_specifications.md for details on filter implementation.
pip install object_filtering.- Download the latest version of
object_filteringfrom the Releases tab on GitHub and install the wheel (.whl).
- Clone this repository.
- Install the Python modules
build,wheel,hatchling, andhatch-requirements-txt. - (Optional) Make modifications to the source code.
- (Optional) Change the module version in
pyproject.toml. - Run
pytestfrom the root of the repository to run unit tests. Only continue if all tests pass. - Build the module by running
py -m buildfrom the root of the repository.
(c) 2025 Scott Ratchford.
object_filtering is licensed under the MIT License. See LICENSE.txt for details.