You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many production systems consume data-cleaning libraries behind microservices or ETL worker endpoints. Adding a lightweight, standalone FastAPI integration recipe in examples/integrations/ helps backend engineers integrate FreshData into web APIs and production serving stacks.
Task
Create a standalone runnable FastAPI recipe in examples/integrations/fastapi_clean_service.py that implements:
A POST /clean endpoint accepting CSV file uploads (UploadFile) or JSON tabular records.
Optional query parameters / request body options (strategy, impute, drop_duplicates).
Clean execution using freshdata.clean() inside a thread pool (asyncio.to_thread or run_in_threadpool) so CPU-bound dataframe processing does not block the async event loop.
Returns the cleaned data along with the structured audit actions from CleanReport.to_dict().
Includes a runnable if __name__ == "__main__": uvicorn.run(...) block so contributors can test immediately.
Acceptance Criteria
Create examples/integrations/fastapi_clean_service.py with standalone, clean, and well-typed code.
Document required dependencies (pip install fastapi uvicorn "freshdata-cleaner[dev]") in the module docstring.
Register the new recipe in examples/README.md.
Script runs and passes lint checks (ruff check examples/integrations/fastapi_clean_service.py).
Activity
MIYUMIYUMIMI commentedon Oct 1, 2026
/assign
github-actions commentedon Oct 1, 2026
Hey @MIYUMIYUMIMI! 🎉 You have claimed this issue.
Quick Onboarding Checklist
pytest tests/<test_file>.py --no-cov(bypasses CI 93% global gate during local development).ruff check .(Need to unassign yourself? Simply reply with
/unassign.)