Skip to content

feat(examples): add FastAPI async cleaning - #515

Merged
JohnnyWilson16 merged 1 commit into
FreshCode-Org:mainfrom
MIYUMIYUMIMI:feat/fastapi-clean-service
Oct 2, 2026
Merged

JohnnyWilson16 merged 1 commit into
FreshCode-Org:mainfrom
MIYUMIYUMIMI:feat/fastapi-clean-service

Conversation

@MIYUMIYUMIMI

Copy link
Copy Markdown

Summary

Adds a standalone FastAPI integration example for FreshData.

The new example:

  • exposes a POST /clean endpoint
  • accepts JSON tabular records or CSV uploads
  • supports strategy, impute, and drop_duplicates
  • runs freshdata.clean() through asyncio.to_thread to avoid blocking the event loop
  • returns cleaned records together with the structured CleanReport
  • documents the new FastAPI integration in examples/README.md

Validation

  • JSON input tested locally
  • CSV multipart upload tested locally
  • duplicate removal verified
  • ruff check examples/integrations/fastapi_clean_service.py passes

Closes #514

@coderabbitai

coderabbitai Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: dfc90696-920a-4c35-a618-f7dd145b6b20

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@JohnnyWilson16

JohnnyWilson16 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

LGTM, Ready to merge!

@JohnnyWilson16
JohnnyWilson16 merged commit 58577e5 into FreshCode-Org:main Oct 2, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(examples): add FastAPI asynchronous cleaning microservice recipe

2 participants