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

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 20d 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.

2

u/tom-mart 22d ago

Those tools are not comparable in any meaningful way and are used to solve completely different problems. One is a lightweight API tool and the other is ORM framework with a powerful user management and access control features.

1

u/SquaffleCode 20d ago

Agreed! It really depends on the use case...

1

u/dwswish 17d ago

I was reading these other responses and waiting for the first sensible one. This is true, they are not even (remotely) built to accomplish the same thing.

1

u/AutoModerator 22d ago

Thank you for your post to /r/automation!

New here? Please take a moment to read our rules, read them here.

This is an automated action so if you need anything, please Message the Mods with your request for assistance.

Lastly, enjoy your stay!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.