presidio icon indicating copy to clipboard operation
presidio copied to clipboard

[FR] FastAPI Implementation for all services

Open kimminw00 opened this issue 4 months ago • 2 comments

Is your feature request related to a problem? Please describe. The current web server implementation for presidio-anonymizer is based on Flask. Flask operates synchronously by default and may not be the optimal choice for high-performance. We require an implementation that leverages a modern, asynchronous framework to improve performance and scalability.

Describe the solution you'd like We request an official implementation of the presidio-anonymizer using FastAPI. This would provide a high-performance alternative that supports asynchronous request handling, which is crucial for building scalable microservices.

Additional context Providing a FastAPI-based implementation would modernize the Presidio project, making it more attractive for deployment in high-throughput environments.

kimminw00 avatar Oct 31 '25 13:10 kimminw00

Hi @kimminw00, this is something we were thinking of, as well as binding pydantic to REST API requests and responses. And not just for presidio-anonymizer but for all services. Would you be interested in issuing a PR or a draft?

SharonHart avatar Nov 03 '25 12:11 SharonHart

I'd be happy to open a PR for this. I can work on it over the weekends and will start with a draft. 🚀

kimminw00 avatar Nov 04 '25 15:11 kimminw00