{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/3"}],"enrichment":{"capability":"Adds declarative filtering, sorting, and pagination to FastAPI endpoints by converting query parameters into database queries for SQLAlchemy and MongoEngine backends.","skillfed_tags":["fastapi","query-filtering","orm-agnostic"],"use_cases":["Build a REST API endpoint that accepts filter parameters and automatically converts them to database queries.","Add sorting and pagination to list endpoints without manually parsing query strings and constructing ORDER BY or LIMIT clauses.","Expose a MongoDB collection via FastAPI with declarative filtering using MongoEngine without writing custom query logic.","Reduce boilerplate in CRUD endpoints by centralizing filter definitions as reusable Pydantic models.","Support complex filtering with multiple conditions while keeping endpoint code clean and readable."],"what_it_does":"fastapi-filter is a library that bridges FastAPI request query parameters to database queries. It lets you define filter schemas using Pydantic models, then automatically converts incoming query strings into structured filters that SQLAlchemy or MongoEngine can execute. Instead of manually parsing and building database queries in each endpoint, you declare what fields are filterable and how, and the library handles the rest.\n\nThe package is designed for developers building REST APIs who want to expose filtering, sorting, and pagination without writing boilerplate query-building code. It integrates directly into FastAPI's dependency injection system via FilterDepends, so filters are applied as route dependencies. Optional backends let you choose between SQLAlchemy (for SQL databases) and MongoEngine (for MongoDB), or use the base filtering logic with other ORMs.","worth_installing":"Yes. Low install friction, active maintenance, no known vulnerabilities, permissive license, and a clear fit for FastAPI projects that need filtering. Install it if you're building FastAPI endpoints with database backends and want to avoid manual query-building boilerplate. The optional backends mean you only add dependencies you actually use."},"id":"fastapi-filter","links":{"html":"https://skillfed.io/packages/fastapi-filter","md":"https://skillfed.io/packages/fastapi-filter.md","pypi":"https://pypi.org/project/fastapi-filter/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-03","license_spdx":null,"license_treatment":"permissive","name":"fastapi-filter","python_support":"supports_current","summary":"FastAPI filter"},"popularity":{"monthly_downloads":340345,"position":7412,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.0.0"}
