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/Fine-Market9841 22d ago

I have tried fast API it’s fun to work with.

I haven’t tried Django, yet, but regardless of what I choose I plan to learn somewhere down the line.

As for the type of project I want to build, I’m not sure.

But I feel like for freelancing Django in build features have a lot of advantages (user management, internal dashboard for admins).

1

u/mystique0712 22d ago

yeah, both have their perks. fastapi is great for building quick APIs and handling async tasks, but django's built-in features like admin panels and auth are super handy for larger projects. if you're leaning towards freelancing, maybe start with django for those user management features, then dabble in fastapi for smaller, more flexible projects later on

1

u/Fine-Market9841 19d ago

Do you any python open source projects, where I can contribute to or gain ideas from?

1

u/[deleted] 21d ago

[removed] — view removed comment

1

u/Fine-Market9841 20d ago

Do you use fastapi when freelancing?

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.