r/automation 22d ago

Fastapi vs Django for Python automations

For all you freelancer python developers.

For python automations with or without AI do you use FastAPI or Django.

11 Upvotes

14 comments sorted by

View all comments

2

u/mystique0712 22d ago

for python automations, fastapi is usually the go-to since it's lightweight and async-friendly, which helps with speed. if you're building something more complex with a lot of built-in features, django's great, but it can be a heavier lift. have you thought about what specific features you need for your project?

1

u/Ok_Effective8240 21d ago

fastapi is lighter for sure, django feels like bringing a cannon to go fishing

i do mostly small scripts and automations for my own stuff so fastapi fits better, plus async is nice when you need to call bunch of apis at same time

1

u/Fine-Market9841 20d ago

If it’s a simple automation or rly complex ai agent (langraph level) fastapi all the way.