SQLAlchemy works very similar to how Django
backend works. Additionally SQLAlchemyModelFilterSet is available to be able
to easily create filter sets from SQLAlchemy models. For example:

fromdjangoimportformsfromurl_filter.backend.sqlalchemyimportSQLAlchemyFilterBackendfromurl_filter.filtersets.sqlalchemyimportSQLAlchemyModelFilterSetclassUserFilterSet(SQLAlchemyModelFilterSet):filter_backend_class=SQLAlchemyFilterBackendclassMeta(object):model=User# this model should be SQLAlchemy modelfields=['username','email','joined','profile']fs=UserFilterSet(data=QueryDict(),queryset=session.query(User))fs.filter()

Notable things:

this works exactly same as ModelFilterSet so refer above for some of
general options.

filter_backend_classmust be provided since otherwise
DjangoFilterBackend will be used which will obviously not work
with SQLAlchemy models.

In addition to supporting regular ORMs django-url-filter also allows to
filter plain Python lists of either objects or dictionaries. This feature
is primarily meant to filter data-sources without direct filtering support
such as lists of data in redis. For example: